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/http
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
..
cache.rb
filter_parameters.rb Removing ==Examples and last blank lines of docs from actionpack 2012-05-15 01:51:54 -05:00
headers.rb Enable ActionDispatch::Http::Headers to support fetch 2012-05-02 11:22:34 -07:00
mime_negotiation.rb Add missing requires in routes 2012-04-23 14:31:38 +03:00
mime_type.rb Fix rdoc formatting in Mime::Type 2012-04-29 22:30:13 -07:00
mime_types.rb
parameter_filter.rb
parameters.rb Reset the request parameters after a constraints check 2012-05-02 23:58:40 +01:00
rack_cache.rb
request.rb Raise ActionController::BadRequest for malformed parameter hashes. 2012-05-20 19:07:04 +01:00
response.rb
upload.rb
url.rb Remove unnecessary empty line 2012-04-25 13:45:56 +03:00