mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
may be empty. a patch from Jamis Buck <jamis at 37signals.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b2d1d0e77
commit
0837449ac2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Sep 23 21:34:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
|
||||
may be empty. a patch from Jamis Buck <jamis at 37signals.com>.
|
||||
|
||||
Sat Sep 23 08:35:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597]
|
||||
|
|
|
@ -1018,7 +1018,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue