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
mime_negotiation.rb
mime_type.rb
mime_types.rb
parameter_filter.rb
parameters.rb
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