Skip to content

Commit

Permalink
Update MakesHttpRequests.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Aug 5, 2020
1 parent f262afc commit 9ab30ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Concerns/MakesHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ protected function seeCookie($cookieName, $value = null, $encrypted = true, $uns
$actual = $encrypted
? $this->app['encrypter']->decrypt($cookieValue, $unserialize) : $cookieValue;

// remove the prefix from the cookie
$hasValidPrefix = strpos($actual, CookieValuePrefix::create($cookieName, app('encrypter')->getKey())) === 0;

$actual = $hasValidPrefix ? CookieValuePrefix::remove($actual) : null;
Expand Down

0 comments on commit 9ab30ed

Please sign in to comment.