diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-09-27 22:23:37 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-09-27 22:23:37 +0000 |
commit | 17d2732b1cc50fd97685417080beb72d00609daf (patch) | |
tree | 5a80084bc3e543209fb489ed30871794926df7e3 /actionpack/lib | |
parent | 0c23f06129ac492896e0f5461bcf3a041c06f2c4 (diff) | |
download | rails-17d2732b1cc50fd97685417080beb72d00609daf.tar.gz rails-17d2732b1cc50fd97685417080beb72d00609daf.tar.bz2 rails-17d2732b1cc50fd97685417080beb72d00609daf.zip |
Ticket #2295 - Tolerate consecutive delimiters in query parameters
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 3 |
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?) |