mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/cgi/session.rb (CGI::Session#initialize): empty session id was
used if request had no session key. fixed: [ruby-core:03981] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
14479cf73d
commit
fbd922da76
2 changed files with 9 additions and 3 deletions
|
@ -253,7 +253,8 @@ class CGI
|
|||
end
|
||||
end
|
||||
unless session_id
|
||||
if session_id = request[session_key]
|
||||
if request.key?(session_key)
|
||||
session_id = request[session_key]
|
||||
session_id = session_id.read if session_id.respond_to?(:read)
|
||||
end
|
||||
unless session_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue