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 | fd77e489f27bccec42844ff3da9e654e049de900 (patch) | |
tree | 539df3c5d8ab2fea0b3a0cb606cde0493f5f644c | |
parent | 5f8e0b66330ece522adb41c1e5d09babdb0cf7d2 (diff) | |
download | ruby-fd77e489f27bccec42844ff3da9e654e049de900.tar.gz |
* lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside
double quotes are allowed. [ruby-list:45140]
git-svn-id: svn+ssh://ci.ruby-lang.org/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 538b33380d..b0c2ef92fe 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 |