blob: 1e732a78f4d2702c6626a608e1cd691e6e30ce75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-bl,v 1.3 2006/11/03 05:36:23 taca Exp $
--- lib/cgi.rb.orig 2006-11-02 22:44:37.000000000 +0900
+++ lib/cgi.rb
@@ -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)
|