Skip to content

Commit

Permalink
fix cookie check regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed Jul 26, 2018
1 parent 876c1a8 commit 81defa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function createWebAPIRequest(
errorcallback
) {
// console.log(cookie);
if (cookie.match(/_csrf=[^(;|$)]+;/g))
if (cookie.match(/_csrf=[^(;|$)]+/g))
data.csrf_token = cookie.match(/_csrf=[^(;|$)]+/g)[0].slice(6);
else data.csrf_token = "";
const proxy = cookie.split("__proxy__")[1];
Expand Down

0 comments on commit 81defa6

Please sign in to comment.