On 10/25/06, Jacob Fugal <lukfugl / gmail.com> wrote: > On 10/25/06, Zed A. Shaw <zedshaw / zedshaw.com> wrote: > > THE PATCH > > > > If you can't do the hot fix gem install, then there is also a patch > > for cgi.rb attached to this e-mail. You can apply the patch with the > > following process: > > > > 1) Find the original cgi.rb file in your install. Mine's in > > /usr/lib/ruby/1.8 > > 2) cd /usr/lib/ruby/1.8 > > 3) sudo patch < ~/cgi_multipart_eof_fix.patch > > > > You can look at the patch. It's literally changing one line, so you > > can edit by hand if you get really desperate. > > Looks like either you forgot the attachment, or maybe the mailing list > software (or gateway bridge?) ate it. Can you please include the patch > in the body of a response? Thanks! > > Jacob Fugal > > Here's the patch, inline: --- /opt/local/lib/ruby/1.8/cgi.rb 2005-10-06 19:01:22.000000000 -0600 +++ cgi.rb 2006-09-22 16:38:08.000000000 -0600 @@ -1017,7 +1017,7 @@ else stdinput.read(content_length) end - if c.nil? + if c.nil? || c.empty? raise EOFError, "bad content body" end buf.concat(c)