mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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 () {
|
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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user