Skip to content

Fix regression bug in domainMatch#500

Merged
colincasey merged 1 commit intomasterfrom
499_domain_match_fix
Feb 28, 2025
Merged

Fix regression bug in domainMatch#500
colincasey merged 1 commit intomasterfrom
499_domain_match_fix

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