diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-01-24 22:33:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-01-24 22:33:17 +0000 |
commit | 92af8014652c7e28fa5a26682e81b974b9dbfaef (patch) | |
tree | 32204b9565287a59c0a3bbd2bdc19d23c907333c | |
parent | 35433859bd9995a9802abc38b1aba379c0019dff (diff) | |
download | rails-92af8014652c7e28fa5a26682e81b974b9dbfaef.tar.gz rails-92af8014652c7e28fa5a26682e81b974b9dbfaef.tar.bz2 rails-92af8014652c7e28fa5a26682e81b974b9dbfaef.zip |
Make to_query safe against nils
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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 74e23bd884..a77fb55747 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)}" + "#{key}=#{CGI.escape(to_param || "")}" end end |