From d153525c53ef6158e2f6b6ba15f10b43d2b8d21a Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 16 May 2006 20:56:41 +0000 Subject: Fix NoMethodError when parsing params like &&. [Adam Greenfield]. Closes #4955 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 941646c530..37eb8d5cd7 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -45,6 +45,7 @@ class CGIMethods #:nodoc: parsed_params = {} for key, value in params + next if key.nil? value = [value] if key =~ /.*\[\]$/ unless key.include?('[') # much faster to test for the most common case first (GET) -- cgit v1.2.3