diff options
author | Josh Goebel <dreamer3@gmail.com> | 2013-03-21 14:23:46 -0400 |
---|---|---|
committer | Josh Goebel <dreamer3@gmail.com> | 2013-03-21 14:23:46 -0400 |
commit | ea2336b9e2c47a9cc1a73b1350ffc03252e6468e (patch) | |
tree | 8bfd4a55d6710ede53fb0be5e56d2a780eaf354f /actionpack/lib | |
parent | ecfdc842a58816540e7c96a913f95a0d94be7ca7 (diff) | |
download | rails-ea2336b9e2c47a9cc1a73b1350ffc03252e6468e.tar.gz rails-ea2336b9e2c47a9cc1a73b1350ffc03252e6468e.tar.bz2 rails-ea2336b9e2c47a9cc1a73b1350ffc03252e6468e.zip |
failure to parse params should trigger a 400 Bad Request
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/exception_wrapper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb index 7489ce8028..4c331f2f0b 100644 --- a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb +++ b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb @@ -12,6 +12,7 @@ module ActionDispatch 'ActionController::NotImplemented' => :not_implemented, 'ActionController::UnknownFormat' => :not_acceptable, 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity, + 'ActionDispatch::ParamsParser::ParseError' => :bad_request, 'ActionController::BadRequest' => :bad_request, 'ActionController::ParameterMissing' => :bad_request ) |