Permalink
Browse files

Never return nil from CGI#read_query for compatibility with plain CGI…

… query params parser. Closes #7581.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6446 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 2632664 commit 65704aeacd1e99273f0910b7599d47fd29d52982 @jeremy jeremy committed Mar 18, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
@@ -68,7 +68,7 @@ def read_query
if env_qs.blank? && !(uri = env_table['REQUEST_URI']).blank?
uri.split('?', 2)[1] || ''
else
- env_qs
+ env_qs || ''
end
end
end

0 comments on commit 65704ae

Please sign in to comment.