1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch
Andrew White 66eb3f02cc Raise ActionController::BadRequest for malformed parameter hashes.
Currently Rack raises a TypeError when it encounters a malformed or
ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this
through to the application this commit captures the exception and
re-raises it using a new ActionController::BadRequest exception.

The new ActionController::BadRequest exception returns a 400 error
instead of the 500 error that would've been returned by the original
TypeError. This allows exception notification libraries to ignore
these errors if so desired.

Closes #3051
2012-05-20 19:07:04 +01:00
..
http Raise ActionController::BadRequest for malformed parameter hashes. 2012-05-20 19:07:04 +01:00
middleware Raise ActionController::BadRequest for malformed parameter hashes. 2012-05-20 19:07:04 +01:00
request need to dup the default options so that mutations will not impact us 2012-05-04 15:55:57 -07:00
routing Improve rake routes output for redirects - closes #6369. 2012-05-19 11:22:00 +01:00
testing Correct order of expected and actual arguments 2012-05-20 19:07:04 +01:00
railtie.rb Turn off verbose mode of rack-cache, we still have X-Rack-Cache to check that info 2012-03-03 00:18:46 -02:00
routing.rb Add config.default_method_for_update to support PATCH 2012-02-22 08:47:10 -08:00