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

View File

@@ -83,7 +83,7 @@ Route::filter('guest', function()
Route::filter('csrf', function()
{
if (Session::token() != Input::get('_token'))
if (Session::token() !== Input::get('_token'))
{
throw new Illuminate\Session\TokenMismatchException;
}