From 828886c28feab3550c29f1243ec71987c3676e56 Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 9 Feb 2007 06:51:44 +0000 Subject: Back out the previous commit which was unintended. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/cgi.rb b/lib/cgi.rb index 94d92e25a..38407da5c 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'])) -- cgit