diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-19 18:31:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-19 18:31:04 +0000 |
commit | fbd922da7694d94f54643114d7d87e22379e3cc2 (patch) | |
tree | 38b7eedb484ee59e22ede3daea4e4d7dac3a486f /lib/cgi | |
parent | 14479cf73d25328bd4f76d4f1831935c80a62ab7 (diff) | |
download | ruby-fbd922da7694d94f54643114d7d87e22379e3cc2.tar.gz |
* 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
Diffstat (limited to 'lib/cgi')
-rw-r--r-- | lib/cgi/session.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 34549b7753..6b14363b96 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -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 |