summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-30 16:07:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-30 16:07:19 +0000
commitfe01219fcab58de6e527d7a876eb02017c6eac68 (patch)
treeb7bc0f22d82f4fd6c7497d66613b550e98f3e70d
parent8f521e4af9aa6726fd5e1862ccff56e01a522eb9 (diff)
* 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/branches/ruby_1_8@17753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/cgi.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ae77c4e51..37fb0d5d3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jul 1 01:07:17 2008 Nobuyoshi Nakada <[email protected]>
+
+ * 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 <[email protected]>
* numeric.c (num_coerce): call rb_Float(x) first. don't depend on
diff --git a/lib/cgi.rb b/lib/cgi.rb
index e616534221..5279439a08 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -1043,7 +1043,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