This commit is contained in:
Damien Metzger
2013-11-29 17:18:18 +01:00
parent b432fd5641
commit 4c2190ddc5
2 changed files with 4 additions and 1 deletions
+4 -1
View File
@@ -270,7 +270,10 @@ class CookieCore
//printf("\$content = %s<br />", $content);
/* Get cookie checksum */
$checksum = crc32($this->_salt.substr($content, 0, strrpos($content, '¤') + 2));
$tmpTab = explode('¤', $content);
array_pop($tmpTab);
$content_for_checksum = implode('¤', $tmpTab).'¤';
$checksum = crc32($this->_salt.$content_for_checksum);
//printf("\$checksum = %s<br />", $checksum);
/* Unserialize cookie content */
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 11 KiB