From bf1bcff2bd16199b0dd8c25f2bcdd437f655835c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 13 Apr 2005 04:50:54 +0000 Subject: [PATCH] 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 --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 3629d09b02..9abf436390 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed that an exception would be thrown when an empty form was submitted #1090 [jan@ulbrich-boerwang.de] + * Moved TextHelper#human_size to NumberHelper#number_to_human_size, but kept an deprecated alias to the old method name * Fixed that the content-type for some browsers could include an additional \r which made wonky things happen #1067 [Thomas Fuchs] 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']))