mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
57da3d94aa
commit
7fd78fad3e
3 changed files with 18 additions and 2 deletions
|
@ -557,7 +557,6 @@ class CGI
|
|||
@files[name]=body
|
||||
end
|
||||
## break loop
|
||||
break if buf.size == 0
|
||||
break if content_length == -1
|
||||
end
|
||||
raise EOFError, "bad boundary end of body part" unless boundary_end =~ /--/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue