Skip to content
Snippets Groups Projects
Commit a53e7164 authored by mattwire's avatar mattwire
Browse files

Set context when getting CSRF token

parent 70fd9ffe
Branches
Tags
1 merge request!2096.8
......@@ -459,7 +459,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
];
if (class_exists('\Civi\Firewall\Firewall')) {
$firewall = new \Civi\Firewall\Firewall();
$jsVars['csrfToken'] = $firewall->generateCSRFToken();
$jsVars['csrfToken'] = $firewall->generateCSRFToken($context);
}
// Add CSS via region (it won't load on drupal webform if added via \Civi::resources()->addStyleFile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment