Permalink
Browse files

Merge pull request #6721 from homakov/patch-2

These lines don't help to mitigate CVE. They only turn [nil] into nil, w...
  • Loading branch information...
2 parents 459de6f + e995734 commit b5d5f96ed9914bcaa651af9fec9e35a2a245f8bc @spastorino spastorino committed Jun 13, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 actionpack/lib/action_dispatch/http/request.rb
@@ -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

0 comments on commit b5d5f96

Please sign in to comment.