diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-09 06:48:51 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-09 06:48:51 +0000 |
| commit | a13272bd82e1e59962e63f5645da79d09136dd27 (patch) | |
| tree | e0df8b2fb5aa58accbba734a9a1638795d2da6d1 /lib | |
| parent | 1203558d4d47b257af761984a6ae225b9c8fc3f8 (diff) | |
| download | ruby-a13272bd82e1e59962e63f5645da79d09136dd27.tar.gz ruby-a13272bd82e1e59962e63f5645da79d09136dd27.tar.xz ruby-a13272bd82e1e59962e63f5645da79d09136dd27.zip | |
* ext/bigdecimal: Synchronize with trunk. Better function
prototypes, removal of a useless method `!=', and document
updates.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 38407da5c..94d92e25a 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 "") + /Content-Disposition:.* filename=(?:"((?:\\.|[^\"])*)"|([^;]*))/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 (not /MSIE/ni.match(env_table['HTTP_USER_AGENT'])) |
