Cookie - Information Disclosure

This commit is contained in:
Harmen Christophe 2020-10-05 12:25:03 +02:00 committed by Harmen Christophe
parent 70134c5491
commit cb9542968e
1 changed files with 3 additions and 2 deletions

View File

@ -1227,10 +1227,11 @@ var tarteaucitron = {
regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
cookie = tarteaucitron.cookie.read().replace(regex, ""),
value = tarteaucitron.parameters.cookieName + '=' + cookie + '!' + key + '=' + status,
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? 'domain=' + tarteaucitron.parameters.cookieDomain + ';' : '';
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? '; domain=' + tarteaucitron.parameters.cookieDomain : '';
secure = location.protocol === 'https:' ? '; Secure' : '';
d.setTime(expireTime);
document.cookie = value + '; expires=' + d.toGMTString() + '; path=/;' + domain;
document.cookie = value + '; expires=' + d.toGMTString() + '; path=/' + domain + secure + '; samesite=lax';
},
"read": function () {
"use strict";