Changeset 12509


Ignore:
Timestamp:
2006-08-24T10:53:47+12:00 (18 years ago)
Author:
kjdon
Message:

Added Stefan's fileupload code to replace use of cgicc by depositor. action.getargsinfo changed, parse_cgi_args now has a fileuploads argument

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.cpp

    r12474 r12509  
    187187 
    188188  // add the cgi arguments from this action
    189   argsinfo.addarginfo (NULL, theaction->getargsinfo());
     189  argsinfo.addarginfo (NULL, *(theaction->getargsinfo()));
    190190}
    191191
     
    546546// This function should be called for each page request. It returns false
    547547// if there was a major problem with the cgi arguments.
    548 bool receptionist::parse_cgi_args (const text_t &argstr, cgiargsclass &args,
     548bool receptionist::parse_cgi_args (const text_t &argstr,
     549                   fileupload_tmap &fileuploads,
     550                   cgiargsclass &args,
    549551                   ostream &logout, text_tmap &fcgienv) {
    550552
     
    558560  // add the defaults
    559561  add_default_args (argsinfo, args, logout);
     562
     563  // add any file upload arguments
     564  add_fileupload_args(argsinfo, args, fileuploads, logout);
    560565
    561566  // get the cookie
  • trunk/gsdl/src/recpt/receptionist.h

    r12411 r12509  
    220220  // This function should be called for each page request. It returns false
    221221  // if there was a major problem with the cgi arguments.
    222   virtual bool parse_cgi_args (const text_t &argstr, cgiargsclass &args,
     222  virtual bool parse_cgi_args (const text_t &argstr,
     223                   fileupload_tmap &fileuploads,
     224                   cgiargsclass &args,
    223225                   ostream &logout, text_tmap &fcgienv);
    224226
Note: See TracChangeset for help on using the changeset viewer.