diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-14 14:51:42 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-14 14:51:42 +0000 |
| commit | 0811bd70e416daa03924286c8f324d76faad2a09 (patch) | |
| tree | c2692457fbae375c8a38fd64a90a852365e331fc /lib/cgi | |
| parent | eced484a5617c21b6723078947ee1fd7b1475fa1 (diff) | |
| download | ruby-0811bd70e416daa03924286c8f324d76faad2a09.tar.gz ruby-0811bd70e416daa03924286c8f324d76faad2a09.tar.xz ruby-0811bd70e416daa03924286c8f324d76faad2a09.zip | |
* enum.c (enum_min_by): new method Enum#min_by. added Enum#max_by
as well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
| -rw-r--r-- | lib/cgi/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index cd6ce95f4..a44de7cb8 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -365,7 +365,6 @@ class CGI raise ArgumentError, "session_id `%s' is invalid" % id end @path = dir+"/"+prefix+id - @path.untaint unless File::exist? @path @hash = {} end @@ -413,7 +412,8 @@ class CGI # Close and delete the session's FileStore file. def delete - File::unlink @path + File::unlink @path + rescue Errno::ENOENT end end |
