projects
/
crux-ports.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a563c651cea4e8f49313aabd8813cbd05e97e280
[crux-ports.git]
/
ruby
/
ruby-cgi_dos.diff
1
--- lib/cgi.rb.orig 2006-08-22 18:38:19.000000000 +0900
2
+++ lib/cgi.rb 2006-11-03 00:18:53.000000000 +0900
3
@@ -1018,7 +1018,7 @@ class CGI
4
else
5
stdinput.read(content_length)
6
end
7
- if c.nil?
8
+ if c.nil? || c.empty?
9
raise EOFError, "bad content body"
10
end
11
buf.concat(c)