aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-06-13 14:40:53 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-06-13 14:40:53 -0700
commitb5d5f96ed9914bcaa651af9fec9e35a2a245f8bc (patch)
tree7da38d47ff9cedb1b03e879d0d22a99e8e9c7528
parent459de6fac3c5a0bcf4c43e221a0a81ab5d81a7f7 (diff)
parente995734e7fcf84f6eade61d180275a9d929cc0a7 (diff)
downloadrails-b5d5f96ed9914bcaa651af9fec9e35a2a245f8bc.tar.gz
rails-b5d5f96ed9914bcaa651af9fec9e35a2a245f8bc.tar.bz2
rails-b5d5f96ed9914bcaa651af9fec9e35a2a245f8bc.zip
Merge pull request #6721 from homakov/patch-2
These lines don't help to mitigate CVE. They only turn [nil] into nil, w...
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb
index 65ff6fb7d8..8cea17c7a6 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -267,9 +267,6 @@ module ActionDispatch
# Remove nils from the params hash
def deep_munge(hash)
- keys = hash.keys.find_all { |k| hash[k] == [nil] }
- keys.each { |k| hash[k] = nil }
-
hash.each_value do |v|
case v
when Array