diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-16 22:42:13 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-16 22:42:13 +0000 |
commit | cde491005e3776b73c25cb7ec45e8750f7ade770 (patch) | |
tree | 9f56d04d25121aca6d8f27d598c1d25580ada4d5 /lib/webrick/httputils.rb | |
parent | 3caa4ee5e545ee975ca3dc3fa798e63876e59a05 (diff) | |
download | ruby-cde491005e3776b73c25cb7ec45e8750f7ade770.tar.gz |
* 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
Diffstat (limited to 'lib/webrick/httputils.rb')
-rw-r--r-- | lib/webrick/httputils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index bed24e09dd..6f6f05a199 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -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 |