summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-28 05:00:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-28 05:00:47 +0000
commit08ec02b92b45464df3dbf79022bb15b853ab0428 (patch)
tree571574af57859810d146f28177c240f1fe04e4f7 /lib
parentceec42bf8c4e350d02d11b84adf9b8ebf7b4af47 (diff)
changes from personal modifies -- matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi/session.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index 48f3496..30fc858 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -54,7 +54,9 @@ class CGI
@output_cookies = [
Cookie::new("name" => session_key,
"value" => id,
- "path" => if ENV["SCRIPT_NAME"] then
+ "path" => if ENV["PATH_INFO"] then
+ File::dirname(ENV["PATH_INFO"])
+ elsif ENV["SCRIPT_NAME"] then
File::dirname(ENV["SCRIPT_NAME"])
else
""