mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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/trunk@7604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d81899716f
commit
a0f7b7ec92
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Dec 20 03:30:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/cgi/session.rb (CGI::Session#initialize): empty session id was
|
||||
used if request had no session key. fixed: [ruby-core:03981]
|
||||
|
||||
Mon Dec 20 00:16:54 2004 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rexml/encodings/SHIFT_JIS.rb: fixed LoadError bug.
|
||||
|
|
|
@ -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
Reference in a new issue