diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-13 14:40:53 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-13 14:40:53 -0700 |
commit | b5d5f96ed9914bcaa651af9fec9e35a2a245f8bc (patch) | |
tree | 7da38d47ff9cedb1b03e879d0d22a99e8e9c7528 | |
parent | 459de6fac3c5a0bcf4c43e221a0a81ab5d81a7f7 (diff) | |
parent | e995734e7fcf84f6eade61d180275a9d929cc0a7 (diff) | |
download | rails-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.rb | 3 |
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 |