зеркало из https://github.com/github/ruby.git
* 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:
Родитель
d81899716f
Коммит
a0f7b7ec92
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче