diff options
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/cgi_methods.rb')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 |
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 |