1
0
Fork 0
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:
xibbar 2011-07-09 05:32:19 +00:00
parent 57da3d94aa
commit 7fd78fad3e
3 changed files with 18 additions and 2 deletions

View file

@ -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 =~ /--/