Browse Source

Check type of token as well.

Taylor Otwell 10 years ago
parent
commit
ba0cf2a1c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/filters.php

+ 1 - 1
app/filters.php

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