Security Fix for csrf token
This commit is contained in:
parent
465cde8a83
commit
5283698970
|
|
@ -67,7 +67,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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue