Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
fix unserialize error on get cookie data
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Aug 25, 2014
1 parent 316ea46 commit 8d2d68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuel/app/classes/model/accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ public function getAccountCookie($level = 'member')

if ($cookie_account != null) {
$cookie_account = \Crypt::decode($cookie_account);
$cookie_account = unserialize($cookie_account);
$cookie_account = @unserialize($cookie_account);// there is no way to check is serialize or unserializable so i have to suppress error.
}

return $cookie_account;
Expand Down

0 comments on commit 8d2d68b

Please sign in to comment.