From 68f1201f85a0c6bb95d8817ee56dce842120763b Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 22 Dec 2004 08:06:12 +0000 Subject: * lib/cgi/session.rb: [ruby-list:40444] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/session.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/cgi') diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 6b14363b9..e475bd94c 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' -- cgit