Skip to content

Fix regex to find token in cookie#153

Open
peng-ni wants to merge 1 commit intomebjas:masterfrom
peng-ni:token-regex-escape
Open

Fix regex to find token in cookie#153
peng-ni wants to merge 1 commit intomebjas:masterfrom
peng-ni:token-regex-escape

Conversation

@peng-ni
Copy link

@peng-ni peng-ni commented May 25, 2022

In the case when the CSRFP token is not at the beginning of the cookie header, the current regex will fail to detect the token correctly because of wrong slash escape in expression.

In the case when the CSRFP token is not at the beginning of the cookie header, the current regex will fail to detect the token correctly because of wrong slash escape in expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant