Skip to content

Commit

Permalink
Update to fix #23 Thanks @richlove1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew13 committed Mar 18, 2013
1 parent 65416cb commit c908524
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions app/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@

Route::filter('csrf', function()
{
var_dump(Input::get('_token'));
var_dump(Session::getToken());
if (Session::getToken() != Input::get('csrf_token') && Session::getToken() != Input::get('_token'))
{
throw new Illuminate\Session\TokenMismatchException;
Expand Down
24 changes: 12 additions & 12 deletions app/start/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@
App::error(function(Exception $exception, $code)
{
Log::error($exception);
//
// switch ($code)
// {
// case 403:
// return View::make('error/403');
//
// case 500:
// return View::make('error/500');
//
// default:
// return View::make('error/404');
// }

switch ($code)
{
case 403:
return View::make('error/403');

case 500:
return View::make('error/500');

default:
return View::make('error/404');
}
});

/*
Expand Down

0 comments on commit c908524

Please sign in to comment.