diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-02-11 06:29:04 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-02-11 06:29:04 +0000 |
commit | 002c0aeef3302d6cceecfd039a325e0eef59c17a (patch) | |
tree | 5481e87590fb537d15c66c76da67d43e800ae135 /activesupport/lib/active_support/core_ext | |
parent | 39ae7025e84e35785e11d9fed059e74e70745ee3 (diff) | |
download | rails-002c0aeef3302d6cceecfd039a325e0eef59c17a.tar.gz rails-002c0aeef3302d6cceecfd039a325e0eef59c17a.tar.bz2 rails-002c0aeef3302d6cceecfd039a325e0eef59c17a.zip |
Hash#to_query CGI-escapes its keys.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb index a77fb55747..d3ab3b3590 100644 --- a/activesupport/lib/active_support/core_ext/hash/conversions.rb +++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb @@ -9,7 +9,7 @@ class Object end def to_query(key) #:nodoc: - "#{key}=#{CGI.escape(to_param || "")}" + "#{CGI.escape(key.to_s)}=#{CGI.escape(to_param || "")}" end end |