Browse Source

Fix CSRF token bug.

Taylor Otwell 11 years ago
parent
commit
6f92ee8efd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/filters.php

+ 1 - 1
app/filters.php

@@ -57,7 +57,7 @@ Route::filter('guest', function()
 
 
 Route::filter('csrf', function()
 Route::filter('csrf', function()
 {
 {
-	if (Session::getToken() != Input::get('csrf_token'))
+	if (Session::getToken() != Input::get('_token'))
 	{
 	{
 		throw new Illuminate\Session\TokenMismatchException;
 		throw new Illuminate\Session\TokenMismatchException;
 	}
 	}