diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-05-16 20:56:41 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-05-16 20:56:41 +0000 |
commit | d153525c53ef6158e2f6b6ba15f10b43d2b8d21a (patch) | |
tree | 8de56ffbd88595a3012690995cd783758c12ab6b /actionpack/lib/action_controller | |
parent | be3a4849a909545de444ef6d4f5751eea8a3ba1f (diff) | |
download | rails-d153525c53ef6158e2f6b6ba15f10b43d2b8d21a.tar.gz rails-d153525c53ef6158e2f6b6ba15f10b43d2b8d21a.tar.bz2 rails-d153525c53ef6158e2f6b6ba15f10b43d2b8d21a.zip |
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
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |