Check type of token as well.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user