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.rb3
1 files changed, 2 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 59439cf8e5..dc1b1189b5 100755
--- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
+++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
@@ -11,7 +11,8 @@ class CGIMethods #:nodoc:
parsed_params = {}
query_string.split(/[&;]/).each { |p|
- k, v = p.split('=')
+ k, v = p.split('=',2)
+ v = nil if (!v.nil? && v.empty?)
k = CGI.unescape(k) unless k.nil?
v = CGI.unescape(v) unless v.nil?