Skip to content

Commit

Permalink
Merge pull request #6721 from homakov/patch-2
Browse files Browse the repository at this point in the history
These lines don't help to mitigate CVE. They only turn [nil] into nil, w...
  • Loading branch information
spastorino committed Jun 13, 2012
2 parents 459de6f + e995734 commit b5d5f96
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions actionpack/lib/action_dispatch/http/request.rb
Expand Up @@ -267,9 +267,6 @@ def local?

# 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
Expand Down

0 comments on commit b5d5f96

Please sign in to comment.