From 17a9405b584d7bd2ceb05f9310112a1d8a00b6ae Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sun, 28 Jan 2007 17:00:17 +0000 Subject: Change the query parser to map empty GET params to "" rather than nil. Closes #5694. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 55bece29d1..b06966729a 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -12,7 +12,7 @@ class CGIMethods #:nodoc: next if chunk.empty? key, value = chunk.split('=', 2) next if key.empty? - value = (value.nil? || value.empty?) ? nil : CGI.unescape(value) + value = value.nil? ? nil : CGI.unescape(value) [ CGI.unescape(key), value ] end.compact -- cgit v1.2.3