Permalink
Browse files

GET parameter keys can be escaped too [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c1a5251 commit f366eb4b2d7bdf9d228aeb9baf221134cefac8f7 @dhh dhh committed Oct 17, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
@@ -13,7 +13,7 @@ def parse_query_parameters(query_string)
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

0 comments on commit f366eb4

Please sign in to comment.