diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-16 22:46:45 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-16 22:46:45 +0000 |
| commit | 2e470cbf4cd200ccc477eeb269dfd860da419451 (patch) | |
| tree | 01da961f17fb43dbdfefc45623f47ed713b9da5c /lib | |
| parent | 47fc6a3ad0147d34fa9d7716508e0a101285df03 (diff) | |
* 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/branches/ruby_1_8@23716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 976d3e915e..c5e847fcb2 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -304,7 +304,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 |
