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

Improve check for correctly set cookie by casting to string #17928

Merged
merged 2 commits into from Sep 6, 2021

Conversation

justinvelluppillai
Copy link
Contributor

Description:

Fixes #17926

Cookies are string values so if we set a cookie with an int value we need to check the string value of that int against the set cookie to make sure it was correctly set (otherwise eg '12345' !== 12345 and we log an unnecessary console error)

Review

@justinvelluppillai justinvelluppillai added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Aug 29, 2021
@justinvelluppillai justinvelluppillai added this to the 4.5.0 milestone Aug 29, 2021
@justinvelluppillai
Copy link
Contributor Author

build js

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2021

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Sep 6, 2021
@sgiehl sgiehl merged commit 55c6ac2 into 4.x-dev Sep 6, 2021
@sgiehl sgiehl deleted the 17926-check-cookie-value-type-safe branch September 6, 2021 15:20
sgiehl pushed a commit that referenced this pull request Sep 7, 2021
* Improve check for correctly set cookie by casting to string

* rebuilt piwik.js

Co-authored-by: justinvelluppillai <justinvelluppillai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Stale The label used by the Close Stale Issues action
Projects
None yet
2 participants