aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/cgi_methods.rb')
-rwxr-xr-xactionpack/lib/action_controller/cgi_ext/cgi_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
index 55bece29d1..b06966729a 100755
--- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
+++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
@@ -12,7 +12,7 @@ class CGIMethods #:nodoc:
next if chunk.empty?
key, value = chunk.split('=', 2)
next if key.empty?
- value = (value.nil? || value.empty?) ? nil : CGI.unescape(value)
+ value = value.nil? ? nil : CGI.unescape(value)
[ CGI.unescape(key), value ]
end.compact