Merge pull request #764 from andrewelkins/develop

Security Fix for csrf token
This commit is contained in:
Samuel Georges 2014-11-12 08:18:21 +11:00
commit 4c7583a1a9

View File

@ -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;
}
});