mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 20:27:07 +09:00
Revert broken regex change in CSRF-P (#954)
This commit is contained in:
1 parent
221dcf9f90
commit
3ca31b33f5
1 file changed
+1
-1
@@ -44,7 +44,7 @@ var CSRFP = {
|
||||
* @return {String} auth key from cookie.
|
||||
*/
|
||||
_getAuthKey: function () {
|
||||
var regex = new RegExp((?:^|;\\s*)${CSRFP.CSRFP_TOKEN}=([^;]+)(;|$));
|
||||
var regex = new RegExp(`${CSRFP.CSRFP_TOKEN}=([^;]+)(;|$)`);
|
||||
var regexResult = regex.exec(document.cookie);
|
||||
if (regexResult === null) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user