diff --git a/ChangeLog b/ChangeLog index 74292afc14..9d212645a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Sep 23 21:34:15 2006 Yukihiro Matsumoto + + * lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content + may be empty. a patch from Jamis Buck . + Sat Sep 23 20:54:28 2006 K.Kosako * oniguruma.h: Version 4.4.4 diff --git a/lib/cgi.rb b/lib/cgi.rb index 8d6705c44a..a10e46eaac 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1015,7 +1015,7 @@ class CGI else stdinput.read(content_length) end - if c.nil? + if c.nil? || c.empty? raise EOFError, "bad content body" end buf.concat(c)