diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-09 06:51:44 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-09 06:51:44 +0000 |
commit | dee43eec074647100bba92834a38af8838af34db (patch) | |
tree | cea77120a432960e43b0c20f17c3d86315d96c21 /lib/cgi.rb | |
parent | 179eb278898bff510a73e8d316702f5c0afa13e1 (diff) |
Back out the previous commit which was unintended.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r-- | lib/cgi.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 94d92e25ae..38407da5cc 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1037,8 +1037,8 @@ class CGI body.rewind - /Content-Disposition:.* filename=(?:"((?:\\.|[^\"])*)"|([^;]*))/ni.match(head) - filename = ($1 or $2 or "") + /Content-Disposition:.* filename="?([^\";]*)"?/ni.match(head) + filename = ($1 or "") if /Mac/ni.match(env_table['HTTP_USER_AGENT']) and /Mozilla/ni.match(env_table['HTTP_USER_AGENT']) and (not /MSIE/ni.match(env_table['HTTP_USER_AGENT'])) |