diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-22 08:06:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-22 08:06:12 +0000 |
commit | a63326b345ac15604e267a2fafa9b53aa9a4c7ab (patch) | |
tree | 39d71fff33fb6e5eb823696d88295c7136e5003c /lib/cgi | |
parent | 46213a37bb2d63e02eaf2fde431e5727d198211e (diff) |
* lib/cgi/session.rb: [ruby-list:40444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7633 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 6b14363b96..e475bd94c7 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -183,7 +183,7 @@ class CGI md5.update(String($$)) md5.update('foobar') @new_session = true - md5.hexdigest[0,16] + md5.hexdigest end private :create_new_id @@ -365,7 +365,7 @@ class CGI # on Unix systems). # prefix:: the prefix to add to the session id when generating # the filename for this session's FileStore file. - # Defaults to "cgi_sid_". + # Defaults to the empty string. # suffix:: the prefix to add to the session id when generating # the filename for this session's FileStore file. # Defaults to the empty string. @@ -374,7 +374,7 @@ class CGI # not exist, or opened if it does. def initialize(session, option={}) dir = option['tmpdir'] || Dir::tmpdir - prefix = option['prefix'] || 'cgi_sid_' + prefix = option['prefix'] || '' suffix = option['suffix'] || '' id = session.session_id require 'digest/md5' |