* lib/cgi/session.rb: fix indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16285e768e
commit
b4890b598b
@ -1,3 +1,7 @@
|
|||||||
|
Sat Nov 8 21:33:53 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/cgi/session.rb: fix indentation.
|
||||||
|
|
||||||
Sat Nov 8 18:11:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sat Nov 8 18:11:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT):
|
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT):
|
||||||
|
@ -292,9 +292,10 @@ class CGI
|
|||||||
"expires" => option['session_expires'],
|
"expires" => option['session_expires'],
|
||||||
"domain" => option['session_domain'],
|
"domain" => option['session_domain'],
|
||||||
"secure" => option['session_secure'],
|
"secure" => option['session_secure'],
|
||||||
"path" => if option['session_path'] then
|
"path" =>
|
||||||
|
if option['session_path']
|
||||||
option['session_path']
|
option['session_path']
|
||||||
elsif ENV["SCRIPT_NAME"] then
|
elsif ENV["SCRIPT_NAME"]
|
||||||
File::dirname(ENV["SCRIPT_NAME"])
|
File::dirname(ENV["SCRIPT_NAME"])
|
||||||
else
|
else
|
||||||
""
|
""
|
||||||
@ -380,6 +381,8 @@ class CGI
|
|||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
md5 = Digest::MD5.hexdigest(id)[0,16]
|
md5 = Digest::MD5.hexdigest(id)[0,16]
|
||||||
@path = dir+"/"+prefix+md5+suffix
|
@path = dir+"/"+prefix+md5+suffix
|
||||||
|
p @path
|
||||||
|
p id
|
||||||
if File::exist? @path
|
if File::exist? @path
|
||||||
@hash = nil
|
@hash = nil
|
||||||
else
|
else
|
||||||
@ -440,8 +443,7 @@ class CGI
|
|||||||
def delete
|
def delete
|
||||||
File::unlink @path+".lock" rescue nil
|
File::unlink @path+".lock" rescue nil
|
||||||
File::unlink @path+".new" rescue nil
|
File::unlink @path+".new" rescue nil
|
||||||
File::unlink @path
|
File::unlink @path rescue Errno::ENOENT
|
||||||
rescue Errno::ENOENT
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user