Security Fix for csrf token

This commit is contained in:
Andrew Elkins 2014-11-11 13:11:09 -08:00
parent 465cde8a83
commit 5283698970

View File

@ -67,7 +67,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;
} }
}); });