[-] FO : #PSCFV-3242 - Add PS version in cookie hach name
This commit is contained in:
+2
-2
@@ -63,7 +63,7 @@ class CookieCore
|
|||||||
{
|
{
|
||||||
$this->_content = array();
|
$this->_content = array();
|
||||||
$this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);
|
$this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);
|
||||||
$this->_name = md5($name);
|
$this->_name = md5(_PS_VERSION_.$name);
|
||||||
$this->_path = trim(Context::getContext()->shop->physical_uri.$path, '/\\').'/';
|
$this->_path = trim(Context::getContext()->shop->physical_uri.$path, '/\\').'/';
|
||||||
if ($this->_path{0} != '/') $this->_path = '/'.$this->_path;
|
if ($this->_path{0} != '/') $this->_path = '/'.$this->_path;
|
||||||
$this->_path = rawurlencode($this->_path);
|
$this->_path = rawurlencode($this->_path);
|
||||||
@@ -309,7 +309,7 @@ class CookieCore
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content = 0;
|
$content = 0;
|
||||||
$time = time() - 1;
|
$time = 1;
|
||||||
}
|
}
|
||||||
if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */
|
if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */
|
||||||
return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);
|
return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user