diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-21 15:34:18 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-21 15:34:18 +0000 |
| commit | 0fab2a11b529543104456c28c496c1f67e61a918 (patch) | |
| tree | 619799712c383752f7cd302906684a9c0856203e /lib/cgi | |
| parent | 468cd343740c8e6db96f2a3bab8897fde53dc98a (diff) | |
| download | ruby-0fab2a11b529543104456c28c496c1f67e61a918.tar.gz ruby-0fab2a11b529543104456c28c496c1f67e61a918.tar.xz ruby-0fab2a11b529543104456c28c496c1f67e61a918.zip | |
* lib/tmpdir.rb: new library to get temporary directory path,
using GetTempPath on Win32 environment.
* lib/tempfile.rb: now uses tmpdir.rb.
* lib/cgi/session.rb, ib/drb/unix.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
| -rw-r--r-- | lib/cgi/session.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 930650823..ae4fb1944 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -3,6 +3,7 @@ # Copyright (C) 2000 Information-technology Promotion Agency, Japan require 'cgi' +require 'tmpdir' class CGI class Session @@ -109,7 +110,7 @@ class CGI end def initialize(session, option={}) - dir = option['tmpdir'] || ENV['TMP'] || '/tmp' + dir = option['tmpdir'] || Dir::TMPDIR prefix = option['prefix'] || '' id = session.session_id unless check_id(id) |
