Branch: Tag:

1998-08-21

1998-08-21 23:02:02 by Johan Schön <js@opera.com>

Multiple variables with the same name weren't concatenated with \0 when using multipart/form-data.

Rev: server/protocols/http.pike:1.114

6: Inside #if defined(MAGIC_ERROR)
  #ifdef MAGIC_ERROR   inherit "highlight_pike";   #endif - constant cvs_version = "$Id: http.pike,v 1.113 1998/08/20 18:04:52 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.114 1998/08/21 23:02:02 js Exp $";   // HTTP protocol module.   #include <config.h>   private inherit "roxenlib";
409:    else    misc->files += ({ part->disp_params->name });    } else { -  variables[part->disp_params->name]=part->getdata(); +  if(variables[part->disp_params->name]) +  variables[part->disp_params->name] += "\0" + part->getdata(); +  else +  variables[part->disp_params->name] = part->getdata();    }    }    break;