Branch: Tag:

2000-12-02

2000-12-02 20:13:24 by Per Hedbor <ph@opera.com>

Use real_variables instead of variables in theform scope. This has one undesireable side-effect: Changes to the 'variables' mapping is _not_ reflected in the scope any longer

Rev: server/etc/modules/Roxen.pmod:1.52

1:   /* -  * $Id: Roxen.pmod,v 1.51 2000/11/21 13:17:29 per Exp $ +  * $Id: Roxen.pmod,v 1.52 2000/12/02 20:13:24 per Exp $    *    * Various helper functions.    *
1149:    mixed `[]( string what )    {    mixed q = variables[ what ]; -  if( !stringp(q) ) +  if( !arrayp(q) )    return q; -  q /= "\0"; +     if( sizeof( q ) == 1 )    return q[0];    return AVal( q, what );
1181:    c->add_scope("page",scope_page);    c->add_scope("cookie", scope_cookie);    c->add_scope("modvar", scope_modvar); -  c->add_scope("form", FormScope( c->id->variables) ); +  c->add_scope("form", FormScope( c->id->real_variables) );    c->add_scope("client", c->id->client_var);    c->add_scope("var", ([]) );    }