Check type of token as well.
This commit is contained in:
parent
5eb4d0afd7
commit
ba0cf2a1c9
|
@ -83,7 +83,7 @@
|
||||||
|
|
||||||
Route::filter('csrf', function()
|
Route::filter('csrf', function()
|
||||||
{
|
{
|
||||||
if (Session::token() != Input::get('_token'))
|
if (Session::token() !== Input::get('_token'))
|
||||||
{
|
{
|
||||||
throw new Illuminate\Session\TokenMismatchException;
|
throw new Illuminate\Session\TokenMismatchException;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue