mirror of
https://github.com/github/rails.git
synced 2026-02-01 01:34:57 -05:00
Make to_query safe against nils
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -9,7 +9,7 @@ class Object
|
||||
end
|
||||
|
||||
def to_query(key) #:nodoc:
|
||||
"#{key}=#{CGI.escape(to_param)}"
|
||||
"#{key}=#{CGI.escape(to_param || "")}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user