- Fixed a typo

This commit is contained in:
mcndave committed 2023-10-30 15:27:49 +00:00
1 parent 9bf167f782
commit 302b1cc8f6
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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.");
} }
@@ -1,5 +1,5 @@
<?php <?php
namespace Stoarge\Exception; namespace Storage\Exception;
class CookieInvalidSecureHashException extends \Exception {} class CookieInvalidSecureHashException extends \Exception {}