Skip to content

Commit

Permalink
Fix errors unserialise
Browse files Browse the repository at this point in the history
  • Loading branch information
carakas committed Jul 1, 2019
1 parent ad4c145 commit 7af722a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spoon/cookie/cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function get($key)
preg_match('/O:\d+:"/', $value, $matches);
// no objects were found
if (empty($matches)) {
$unserializedValue = unserialize($value);
$unserializedValue = @unserialize($value);
// unserialize was successful
if ($unserializedValue !== false || serialize(false) === $value) {
// set the cookie again, but this time json encode it
Expand Down

0 comments on commit 7af722a

Please sign in to comment.