mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02: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
|
@ -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…
Add table
Add a link
Reference in a new issue