mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #764 from andrewelkins/develop
Security Fix for csrf token
This commit is contained in:
commit
4c7583a1a9
@ -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…
x
Reference in New Issue
Block a user