287c287 < REVISION = '$Id: cgi.rb,v 1.68.2.16 2006/08/22 09:38:19 matz Exp $' #:nodoc: --- > REVISION = '$Id: cgi.rb,v 1.68.2.16.2.2 2006/12/03 08:06:27 shugo Exp $' #:nodoc: 969a970 > quoted_boundary = Regexp.quote(boundary, "n") 1001c1002 < until head and /#{boundary}(?:#{EOL}|--)/n.match(buf) --- > until head and /#{quoted_boundary}(?:#{EOL}|--)/n.match(buf) 1028c1029 < buf = buf.sub(/\A((?:.|\n)*?)(?:[\r\n]{1,2})?#{boundary}([\r\n]{1,2}|--)/n) do --- > buf = buf.sub(/\A((?:.|\n)*?)(?:[\r\n]{1,2})?#{quoted_boundary}([\r\n]{1,2}|--)/n) do