diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 16:07:19 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 16:07:19 +0000 |
| commit | c56ae8a88c199ee72e34ecfa6df90d27d67d3c97 (patch) | |
| tree | 539df3c5d8ab2fea0b3a0cb606cde0493f5f644c | |
| parent | 2656d7eadf358bca2eba9d44d7bc83096eb44b59 (diff) | |
| download | ruby-c56ae8a88c199ee72e34ecfa6df90d27d67d3c97.tar.gz ruby-c56ae8a88c199ee72e34ecfa6df90d27d67d3c97.tar.xz ruby-c56ae8a88c199ee72e34ecfa6df90d27d67d3c97.zip | |
* lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside
double quotes are allowed. [ruby-list:45140]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/cgi.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Jul 1 01:07:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside + double quotes are allowed. [ruby-list:45140] + Tue Jul 1 00:59:43 2008 Tanaka Akira <akr@fsij.org> * numeric.c (num_coerce): call rb_Float(x) first. don't depend on diff --git a/lib/cgi.rb b/lib/cgi.rb index 538b33380..b0c2ef92f 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1040,7 +1040,7 @@ class CGI body.rewind - /Content-Disposition:.* filename=(?:"((?:\\.|[^\"\s])*)"|([^;\s]*))/ni.match(head) + /Content-Disposition:.* filename=(?:"((?:\\.|[^\"])*)"|([^;\s]*))/ni.match(head) filename = ($1 or $2 or "") if /Mac/ni.match(env_table['HTTP_USER_AGENT']) and /Mozilla/ni.match(env_table['HTTP_USER_AGENT']) and |
