Branch: Tag:

2001-08-15

2001-08-15 15:48:06 by Per Hedbor <ph@opera.com>

Fixed scan_for_query wrt. the new real_variables interface

Rev: server/base_server/prototypes.pike:1.30

4:   #include <stat.h>   #include <config.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.29 2001/08/13 18:21:11 per Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.30 2001/08/15 15:48:06 per Exp $";      class Variable   {
651:    {    a = _Roxen.http_decode_string(replace(a, "+", " "));    b = _Roxen.http_decode_string(replace(b, "+", " ")); -  -  if(variables[ a ]) -  variables[ a ] += "\0" + b; -  else -  variables[ a ] = b; +  real_variables[ a ] += ({ b });    } else    if(strlen( rest_query ))    rest_query += "&" + _Roxen.http_decode_string( v );
674:    object c,t;    c=object_program(t=this_object())(0, port_obj, conf);    -  // c->first = first; +     c->port_obj = port_obj;    c->conf = conf;    c->root_id = root_id;    c->time = time;    c->raw_url = raw_url; -  c->variables = copy_value(variables); +  +  c->real_variables = copy_value( real_variables ); +  c->variables = FakedVariables( c->real_variables );    c->misc = copy_value( misc );    c->misc->orig = t;