Skip to content

Fix Browser.getCookie regex - #4448

Closed
lukaszsamson wants to merge 1 commit into
phoenixframework:mainfrom
lukaszsamson:ls-fix-cookie-regex
Closed

lukaszsamson wants to merge 1 commit into
phoenixframework:mainfrom
lukaszsamson:ls-fix-cookie-regex

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

The regex had invalid escapes which js expands to literal s and = instead of \s and \=. Result of the bug: getCookie not able to retrieve cookie on any position but the first, e.g. in apple=1234; orange=5678

@SteffenDE SteffenDE closed this in 3b09abd Sep 25, 2026
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