12 lines
367 B
Diff
12 lines
367 B
Diff
--- lib/cgi.rb.orig 2006-08-22 18:38:19.000000000 +0900
|
|
+++ lib/cgi.rb 2006-11-03 00:18:53.000000000 +0900
|
|
@@ -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)
|