aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-12-03 11:01:56 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2013-12-03 11:01:56 -0800
commitdba82120fe58d7a87973aef11bc7d85ee8ebf258 (patch)
treea0e64d31f70dd6a74f41cacbc0f17977abd0cd6f /actionpack/lib/action_dispatch/http
parentbe5527b8e8fcc25946b128fe78db10d5bee2a483 (diff)
parent4e9dd5378bd5bfaa095a96068c7d1b7c4f47e1b0 (diff)
downloadrails-dba82120fe58d7a87973aef11bc7d85ee8ebf258.tar.gz
rails-dba82120fe58d7a87973aef11bc7d85ee8ebf258.tar.bz2
rails-dba82120fe58d7a87973aef11bc7d85ee8ebf258.zip
Merge branch 'master-sec'
* master-sec: Deep Munge the parameters for GET and POST Stop using i18n's built in HTML error handling. Ensure simple_format escapes its html attributes Escape the unit value provided to number_to_currency Only use valid mime type symbols as cache keys
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb
index 99b81c898f..071ff0b63e 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -271,7 +271,7 @@ module ActionDispatch
# Override Rack's GET method to support indifferent access
def GET
- @env["action_dispatch.request.query_parameters"] ||= (normalize_encode_params(super) || {})
+ @env["action_dispatch.request.query_parameters"] ||= deep_munge((normalize_encode_params(super) || {}))
rescue TypeError => e
raise ActionController::BadRequest.new(:query, e)
end
@@ -279,7 +279,7 @@ module ActionDispatch
# Override Rack's POST method to support indifferent access
def POST
- @env["action_dispatch.request.request_parameters"] ||= (normalize_encode_params(super) || {})
+ @env["action_dispatch.request.request_parameters"] ||= deep_munge((normalize_encode_params(super) || {}))
rescue TypeError => e
raise ActionController::BadRequest.new(:request, e)
end