aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-xactionpack/lib/action_controller/cgi_ext/cgi_methods.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
index ac2dae9989..817d9d0d0d 100755
--- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
+++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
@@ -11,6 +11,9 @@ class CGIMethods #:nodoc:
parsed_params = {}
query_string.split(/[&;]/).each { |p|
+ # Ignore repeated delimiters.
+ next if p.empty?
+
k, v = p.split('=',2)
v = nil if (v && v.empty?)