mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
66eb3f02cc
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 |
||
---|---|---|
.. | ||
session | ||
templates/rescues | ||
best_standards_support.rb | ||
callbacks.rb | ||
cookies.rb | ||
debug_exceptions.rb | ||
exception_wrapper.rb | ||
flash.rb | ||
head.rb | ||
params_parser.rb | ||
public_exceptions.rb | ||
reloader.rb | ||
remote_ip.rb | ||
request_id.rb | ||
show_exceptions.rb | ||
ssl.rb | ||
stack.rb | ||
static.rb |