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 | 68f1201f85a0c6bb95d8817ee56dce842120763b (patch) | |
| tree | 39d71fff33fb6e5eb823696d88295c7136e5003c /lib/cgi | |
| parent | fdfb0e53622e69624d0bd2d1297d7b19f8f2a191 (diff) | |
| download | ruby-68f1201f85a0c6bb95d8817ee56dce842120763b.tar.gz ruby-68f1201f85a0c6bb95d8817ee56dce842120763b.tar.xz ruby-68f1201f85a0c6bb95d8817ee56dce842120763b.zip | |
* 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
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 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' |
