Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cookie domain for domain: all on two letter single level TLD #47087

Merged
merged 1 commit into from Jan 24, 2023

Conversation

jhawthorn
Copy link
Member

@jhawthorn jhawthorn commented Jan 20, 2023

Previously the regex wasn't checking for a . before the TLDs, so would incorrectly match on single-level two-letter TLDs.

This should (hopefully) fix #47055 and restore the previous behaviour (though possibly that behaviour isn't 1000% correct vs comparing against the public suffix list, but hopefully it's good enough™)

@langalex
Copy link

works for me!

@jhawthorn jhawthorn changed the title Fix cookie domain calculation for two letter TLD Fix cookie domain for domain: all on two letter single level TLD Jan 24, 2023
@jhawthorn jhawthorn merged commit f6e36c9 into rails:main Jan 24, 2023
jhawthorn added a commit that referenced this pull request Jan 25, 2023
Fix cookie domain for `domain: all` on two letter single level TLD
jhawthorn added a commit that referenced this pull request Jan 25, 2023
Fix cookie domain for `domain: all` on two letter single level TLD
WhatTheAncient pushed a commit to WhatTheAncient/rails that referenced this pull request Feb 11, 2023
Fix cookie domain for `domain: all` on two letter single level TLD
bendilley pushed a commit to skillstream/rails that referenced this pull request Feb 24, 2023
Fix cookie domain for `domain: all` on two letter single level TLD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookie domain calculation broken with domain: all after 6.1.7.1 upgrade
3 participants