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:
authorStefan Giehl <stefan@matomo.org>2021-07-30 02:41:52 +0300
committerGitHub <noreply@github.com>2021-07-30 02:41:52 +0300
commitda4df21e808fa983e32c6402c8f3de90145e0910 (patch)
tree299b930a152748e11161e880c9ab9371bbe04fac /js/piwik.js
parentd4f1a131eecac2e71c901db3188427c66dce19e1 (diff)
Don't check cookie value if cookie was deleted (#17830)
* don't check cookie value if cookie was deleted * add test that ensures no error is logged when setCookieDomain is called w/ valid input Co-authored-by: diosmosis <diosmosis@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 c86cf377fa..7d201c357e 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 (getCookie(cookieName) !== value) {
+ if ((!msToExpire || msToExpire >= 0) && getCookie(cookieName) !== value) {
var msg = 'There was an error setting cookie `' + cookieName + '`. Please check domain and path.';
logConsoleError(msg);
}