Commit ba0cf2a1 authored by Taylor Otwell's avatar Taylor Otwell

Check type of token as well.

parent 5eb4d0af
...@@ -83,7 +83,7 @@ Route::filter('guest', function() ...@@ -83,7 +83,7 @@ Route::filter('guest', function()
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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment