Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Velluppillai <justin@innocraft.com>2021-09-06 18:20:30 +0300
committerGitHub <noreply@github.com>2021-09-06 18:20:30 +0300
commit55c6ac2841231e4d85132e7a54ebf7f29aaee5af (patch)
tree41b1286b7e18b3425dcf2985f58349a684383f94 /js/piwik.js
parent8f76b9b7e4ac7d94cc479bd4232210d16deea827 (diff)
Improve check for correctly set cookie by casting to string (#17928)
* Improve check for correctly set cookie by casting to string * rebuilt piwik.js Co-authored-by: justinvelluppillai <justinvelluppillai@users.noreply.github.com>
Diffstat (limited to 'js/piwik.js')
-rw-r--r--js/piwik.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 7d201c357e..3617c3ca4a 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -2449,7 +2449,7 @@ if (typeof window.Matomo !== 'object') {
';SameSite=' + sameSite;
// check the cookie was actually set
- if ((!msToExpire || msToExpire >= 0) && getCookie(cookieName) !== value) {
+ if ((!msToExpire || msToExpire >= 0) && getCookie(cookieName) !== String(value)) {
var msg = 'There was an error setting cookie `' + cookieName + '`. Please check domain and path.';
logConsoleError(msg);
}