aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-13 04:50:54 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-13 04:50:54 +0000
commitbf1bcff2bd16199b0dd8c25f2bcdd437f655835c (patch)
treed4db7d101af269fad01111d73d3ae61ad9512a40 /actionpack/lib/action_controller
parent988dc1e8624ab429537006d9cf86008e8b9eedd0 (diff)
downloadrails-bf1bcff2bd16199b0dd8c25f2bcdd437f655835c.tar.gz
rails-bf1bcff2bd16199b0dd8c25f2bcdd437f655835c.tar.bz2
rails-bf1bcff2bd16199b0dd8c25f2bcdd437f655835c.zip
Fixed that an exception would be thrown when an empty form was submitted #1090 [jan@ulbrich-boerwang.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
index 5be4b57c66..7b3465c4a8 100644
--- a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
+++ b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
@@ -11,7 +11,7 @@ class CGI #:nodoc:
@params = read_multipart(boundary, Integer(env_table['CONTENT_LENGTH']))
else
@multipart = false
- @params = CGI::parse(read_query_params)
+ @params = CGI::parse(read_query_params || "")
end
@cookies = CGI::Cookie::parse((env_table['HTTP_COOKIE'] || env_table['COOKIE']))