diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-14 14:22:11 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-14 14:22:11 +0000 |
| commit | b2b23fb1cdb54d5a9141867947b2ca77bf3730a3 (patch) | |
| tree | ec2f7c5a884c4f259f7b4971e9ce5664952d35aa /lib/cgi | |
| parent | bde894ffc933e13007a68627f0f5fe02ed1f2b7e (diff) | |
* gc.c, parse.y, lib/cgi.rb, lib/date.rb: last minute backports from HEAD.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
| -rw-r--r-- | lib/cgi/session.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 845350139..a44de7cb8 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -210,7 +210,7 @@ class CGI # # session_expires:: the time the current session expires, as a # +Time+ object. If not set, the session will terminate - # when the user's browser is closed. + # when the user's browser is closed. # session_domain:: the hostname domain for which this session is valid. # If not set, defaults to the hostname of the server. # session_secure:: if +true+, this session will only work over HTTPS. @@ -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 |
