[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

CGI::Session generating blank IDs => Another CGI problem

From: Ryan Pavlik <rpav@...>
Date: 2003-05-02 07:57:12 UTC
List: ruby-core #1002
On Fri, 2 May 2003 14:42:58 +0900
Ryan Pavlik <rpav@nwlink.com> wrote:

> Hmm, for some reason the latest CVS's CGI::Session seems to be
> generating blank 'id' strings, although the code looks fine.

Replying to myself yet again.  However, it appears there have been
a number of (apparently untested) changes to CGI which result in
a lot of breakage.

In this case, CGI#value:

   def [](key)
      ..
      value ||= ""
      ..
   end

Existing code, including CGI::Session, expects values to be nil 
if they don't exist.

-- 
Ryan Pavlik <rpav@users.sf.net>

"Ha! Who needs wits when you've got swords!" - 8BT

In This Thread