diff options
Diffstat (limited to 'lang/ruby16/patches/patch-aj')
-rw-r--r-- | lang/ruby16/patches/patch-aj | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/ruby16/patches/patch-aj b/lang/ruby16/patches/patch-aj new file mode 100644 index 00000000000..78b4d3d8073 --- /dev/null +++ b/lang/ruby16/patches/patch-aj @@ -0,0 +1,20 @@ +$NetBSD: patch-aj,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ + +--- lib/cgi.rb.orig 2002-08-29 18:05:06.000000000 +0900 ++++ lib/cgi.rb +@@ -823,10 +823,13 @@ convert string charset, and set language + end + + c = if bufsize < content_length +- stdinput.read(bufsize) or '' ++ stdinput.read(bufsize) + else +- stdinput.read(content_length) or '' ++ stdinput.read(content_length) + end ++ if c.nil? ++ raise EOFError, "bad content body" ++ end + buf += c + content_length -= c.size + |