Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f366eb4b2d7bdf9d228aeb9baf221134cefac8f7 1 parent c1a5251
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.