1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cgi/session.rb: update use rescue nil all because

session delete shoud try all pattern.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
xibbar 2013-04-19 06:17:01 +00:00
parent 683c5fdfec
commit 0e102a6658

View file

@ -435,9 +435,9 @@ class CGI
# Close and delete the session's FileStore file.
def delete
File::unlink @path+".lock" rescue Errno::ENOENT
File::unlink @path+".new" rescue Errno::ENOENT
File::unlink @path rescue Errno::ENOENT
File::unlink @path+".lock" rescue nil
File::unlink @path+".new" rescue nil
File::unlink @path rescue nil
end
end