Skip to content

Commit ba0cf2a

Browse files
committed
Check type of token as well.
1 parent 5eb4d0a commit ba0cf2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
Route::filter('csrf', function()
8585
{
86-
if (Session::token() != Input::get('_token'))
86+
if (Session::token() !== Input::get('_token'))
8787
{
8888
throw new Illuminate\Session\TokenMismatchException;
8989
}

0 commit comments

Comments
 (0)