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 regression bug in domainMatch #500

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

colincasey
Copy link
Contributor

The code in domainMatch needs to make comparisions using the _str and _domStr variables as these are canonicalized versions of the domain and cookieDomain arguments.

One of the comparisions was mistakenly using the cookieDomain when it should have been using _domStr. This PR closes #499 by using the correct variable for the comparison and adds a test that covers this case to our list of cases for domainMatch.

The code in `domainMatch` needs to make comparisions using the `_str` and `_domStr` variables as these are canonicalized versions of the `domain` and `cookieDomain` arguments.

One of the comparisions was mistakenly using the `cookieDomain` when it should have been using `_domStr`. This PR closes #499 by using the correct variable for the comparison and adds a test that covers this case to our list of cases for `domainMatch`.
@colincasey colincasey self-assigned this Feb 28, 2025
@colincasey colincasey merged commit 824b401 into master Feb 28, 2025
10 checks passed
@colincasey colincasey mentioned this pull request Feb 28, 2025
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.

No match on .google.com cookie domain against www.google.com
2 participants