Skip to content

Commit

Permalink
fix matomo-org#15681 secure cookie flag is not set for referrer and c…
Browse files Browse the repository at this point in the history
…ustom dimensions (matomo-org#15683)

* fix matomo-org#15681 secure cookie flag is not set for referrer and custom dimensions

* rebuilt piwik.js

Co-authored-by: sgiehl <[email protected]>
  • Loading branch information
tsteur and sgiehl authored Mar 9, 2020
1 parent ddb1212 commit 0ca7356
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions js/piwik.js
Original file line number Diff line number Diff line change
Expand Up @@ -3587,7 +3587,7 @@ if (typeof window.Piwik !== 'object') {
purify(referralUrl.slice(0, referralUrlMaxLength))
];

setCookie(cookieReferrerName, windowAlias.JSON.stringify(attributionCookie), configReferralCookieTimeout, configCookiePath, configCookieDomain);
setCookie(cookieReferrerName, windowAlias.JSON.stringify(attributionCookie), configReferralCookieTimeout, configCookiePath, configCookieDomain, configCookieIsSecure);
}
}

Expand Down Expand Up @@ -3682,7 +3682,7 @@ if (typeof window.Piwik !== 'object') {
}

if (configStoreCustomVariablesInCookie) {
setCookie(cookieCustomVariablesName, windowAlias.JSON.stringify(customVariables), configSessionCookieTimeout, configCookiePath, configCookieDomain);
setCookie(cookieCustomVariablesName, windowAlias.JSON.stringify(customVariables), configSessionCookieTimeout, configCookiePath, configCookieDomain, configCookieIsSecure);
}
}

Expand Down
4 changes: 2 additions & 2 deletions js/piwik.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0ca7356

Please sign in to comment.