Skip to content

Commit

Permalink
[5.6] Make Auth/Recaller handle serialized and unserialized cookies (#…
Browse files Browse the repository at this point in the history
…25167)

*          if remember_token is serialized we consider it invalid

*       make it work bothways instead

* Update Recaller.php
  • Loading branch information
themsaid authored and taylorotwell committed Aug 9, 2018
1 parent a1c2f82 commit b6f2fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Recaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Recaller
*/
public function __construct($recaller)
{
$this->recaller = $recaller;
$this->recaller = @unserialize($recaller, false) ?: $recaller;
}

/**
Expand Down

0 comments on commit b6f2fe0

Please sign in to comment.