Compare commits
2
Commits
f2ad49d8ab
...
1694a0f284
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1694a0f284 | ||
|
|
302b1cc8f6 |
@@ -89,6 +89,8 @@ class Cookie {
|
|||||||
list($hash, $value) = explode('|', $_COOKIE[$key], 2);
|
list($hash, $value) = explode('|', $_COOKIE[$key], 2);
|
||||||
|
|
||||||
if (! $this->isSecure($hash, $value)) {
|
if (! $this->isSecure($hash, $value)) {
|
||||||
|
$this->delete($key);
|
||||||
|
|
||||||
throw new Exception\CookieInvalidSecureHashException("Invalid cookie hash value given.");
|
throw new Exception\CookieInvalidSecureHashException("Invalid cookie hash value given.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user