Check type of token as well.

This commit is contained in:
Taylor Otwell 2014-11-09 16:29:56 -06:00
parent 5eb4d0afd7
commit ba0cf2a1c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }