mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/session.rb (create_new_id): don't cut off md5.hexdigest to
follow Ruby 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
78ce3ea1ed
commit
c43511cd89
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jun 29 20:51:04 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/cgi/session.rb (create_new_id): don't cut off md5.hexdigest to
|
||||
follow Ruby 1.8.
|
||||
|
||||
Fri Jun 29 17:10:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* debug.h: constified.
|
||||
|
|
|
@ -186,7 +186,7 @@ class CGI
|
|||
md5.update(String(rand(0)))
|
||||
md5.update(String($$))
|
||||
md5.update('foobar')
|
||||
session_id = md5.hexdigest[0,16]
|
||||
session_id = md5.hexdigest
|
||||
end
|
||||
@new_session = true
|
||||
session_id
|
||||
|
|
Loading…
Reference in a new issue