Wed Jun 14 00:50:14 2000 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cig.rb: read_multipart(): if no content body then raise EOFError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
00bd38a3b1
commit
aa2a6871ee
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jun 14 00:50:14 2000 Wakou Aoyama <wakou@fsinet.or.jp>
|
||||||
|
|
||||||
|
* lib/cig.rb: read_multipart(): if no content body then raise EOFError.
|
||||||
|
|
||||||
Tue Jun 13 11:46:17 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
|
Tue Jun 13 11:46:17 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
|
||||||
|
|
||||||
* process.c (proc_setsid): try implement it using setpgrp() and
|
* process.c (proc_setsid): try implement it using setpgrp() and
|
||||||
|
17
lib/cgi.rb
17
lib/cgi.rb
@ -5,7 +5,7 @@ $Date$
|
|||||||
|
|
||||||
cgi.rb
|
cgi.rb
|
||||||
|
|
||||||
Version 1.60
|
Version 1.61
|
||||||
|
|
||||||
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
||||||
Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
||||||
@ -185,7 +185,7 @@ class CGI
|
|||||||
EOL = CR + LF
|
EOL = CR + LF
|
||||||
v = $-v
|
v = $-v
|
||||||
$-v = false
|
$-v = false
|
||||||
VERSION = "1.60"
|
VERSION = "1.61"
|
||||||
RELEASE_DATE = "$Date$"
|
RELEASE_DATE = "$Date$"
|
||||||
$-v = v
|
$-v = v
|
||||||
|
|
||||||
@ -752,7 +752,12 @@ convert string charset, and set language to "ja".
|
|||||||
|
|
||||||
# start multipart/form-data
|
# start multipart/form-data
|
||||||
stdinput.binmode
|
stdinput.binmode
|
||||||
content_length -= stdinput.read((boundary + EOL).size).size
|
boundary_size = boundary.size + EOL.size
|
||||||
|
content_length -= boundary_size
|
||||||
|
status = stdinput.read(boundary_size)
|
||||||
|
if nil == status
|
||||||
|
raise EOFError, "no content body"
|
||||||
|
end
|
||||||
|
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
|
|
||||||
@ -1903,6 +1908,12 @@ end
|
|||||||
|
|
||||||
== HISTORY
|
== HISTORY
|
||||||
|
|
||||||
|
=== Version 1.61 - wakou
|
||||||
|
|
||||||
|
2000/06/13 15:49:27
|
||||||
|
|
||||||
|
- read_multipart(): if no content body then raise EOFError.
|
||||||
|
|
||||||
=== Version 1.60 - wakou
|
=== Version 1.60 - wakou
|
||||||
|
|
||||||
2000/06/03 18:16:17
|
2000/06/03 18:16:17
|
||||||
|
Loading…
x
Reference in New Issue
Block a user