diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-17 22:06:54 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-17 22:06:54 +0000 |
commit | f366eb4b2d7bdf9d228aeb9baf221134cefac8f7 (patch) | |
tree | 05ff925404daa074ce1aa5fe5187e2eea87b5427 /actionpack | |
parent | c1a52510ea1d20990b047e8b2aa8a7154a931f1b (diff) | |
download | rails-f366eb4b2d7bdf9d228aeb9baf221134cefac8f7.tar.gz rails-f366eb4b2d7bdf9d228aeb9baf221134cefac8f7.tar.bz2 rails-f366eb4b2d7bdf9d228aeb9baf221134cefac8f7.zip |
GET parameter keys can be escaped too [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-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 aec6ea9284..dfe7dff873 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -13,7 +13,7 @@ class CGIMethods #:nodoc: key, value = chunk.split('=', 2) next if key.empty? value = (value.nil? || value.empty?) ? nil : CGI.unescape(value) - [ key, value ] + [ CGI.unescape(key), value ] end.compact FormEncodedPairParser.new(pairs).result |