提交 b5d5f96e 编写于 作者: S Santiago Pastorino

Merge pull request #6721 from homakov/patch-2

These lines don't help to mitigate CVE. They only turn [nil] into nil, w...
...@@ -267,9 +267,6 @@ def local? ...@@ -267,9 +267,6 @@ def local?
# Remove nils from the params hash # Remove nils from the params hash
def deep_munge(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| hash.each_value do |v|
case v case v
when Array when Array
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册