Skip to content

Commit

Permalink
[5.5] Fix: verify csrf token allows to except full urls (#22619)
Browse files Browse the repository at this point in the history
* Fix: verify csrf token allows to except full urls

* Update VerifyCsrfToken.php
  • Loading branch information
BenCavens authored and taylorotwell committed Jan 2, 2018
1 parent 8d4eeac commit 42fb248
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function inExceptArray($request)
$except = trim($except, '/');
}

if ($request->is($except)) {
if ($request->url() === $except || $request->is($except)) {
return true;
}
}
Expand Down

0 comments on commit 42fb248

Please sign in to comment.