From f366eb4b2d7bdf9d228aeb9baf221134cefac8f7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 17 Oct 2006 22:06:54 +0000 Subject: GET parameter keys can be escaped too [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3