ruby: applied a bunch of patches with varying importance
[crux-ports.git] / ruby / ruby-cgi_dos.diff
diff --git a/ruby/ruby-cgi_dos.diff b/ruby/ruby-cgi_dos.diff
new file mode 100644 (file)
index 0000000..a563c65
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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)