From 92af8014652c7e28fa5a26682e81b974b9dbfaef Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 24 Jan 2007 22:33:17 +0000 Subject: Make to_query safe against nils git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/hash/conversions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3