1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/webrick/httputils.rb (parse_form_data): escape boundary of

multipart/form-data when embed in regexp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-06-16 22:42:13 +00:00
parent 3caa4ee5e5
commit cde491005e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 17 07:36:22 2009 NARUSE, Yui <naruse@ruby-lang.org>
* lib/webrick/httputils.rb (parse_form_data): escape boundary of
multipart/form-data when embed in regexp.
Wed Jun 17 07:24:26 2009 Koichi Sasada <ko1@atdot.net>
* array.c (rb_ary_memsize): added.

View file

@ -305,7 +305,7 @@ module WEBrick
module_function :parse_query
def parse_form_data(io, boundary)
boundary_regexp = /\A--#{boundary}(--)?#{CRLF}\z/
boundary_regexp = /\A--#{Regexp.quote(boundary)}(--)?#{CRLF}\z/
form_data = Hash.new
return form_data unless io
data = nil