Changeset 361


Ignore:
Timestamp:
1999-07-11T10:15:30+12:00 (25 years ago)
Author:
rjmcnab
Message:

Added function check_external_cgiargs so that actions that
are not being called can override cgi arguments.

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

Legend:

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

    r261 r361  
    1212/*
    1313   $Log$
     14   Revision 1.12  1999/07/10 22:15:30  rjmcnab
     15   Added function check_external_cgiargs so that actions that
     16   are not being called can override cgi arguments.
     17
    1418   Revision 1.11  1999/06/08 04:29:41  sjboddie
    1519   added argsinfo to the call to check_cgiargs to make it easy to set
     
    120124}
    121125
     126// check_external_cgiargs should be called after check_cgiargs
     127// for all actions. It should only be used to override some other
     128// normal behaviour, for example, producing a login page when
     129// the requested page needs authentication.
     130bool action::check_external_cgiargs (cgiargsinfoclass &/*argsinfo*/,
     131                     cgiargsclass &/*args*/,
     132                     outconvertclass &/*outconvert*/,
     133                     const text_t &/*saveconf*/,
     134                     ostream &/*logout*/) {
     135  return true;
     136}
     137
    122138// get_cgihead_info determines the cgi header information for
    123139// a set of cgi arguments. If response contains location then
  • trunk/gsdl/src/recpt/action.h

    r261 r361  
    5757  virtual bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
    5858                  ostream &logout);
     59
     60  // check_external_cgiargs should be called after check_cgiargs
     61  // for all actions. It should only be used to override some other
     62  // normal behaviour, for example, producing a login page when
     63  // the requested page needs authentication.
     64  virtual bool check_external_cgiargs (cgiargsinfoclass &argsinfo,
     65                       cgiargsclass &args,
     66                       outconvertclass &outconvert,
     67                       const text_t &saveconf,
     68                       ostream &logout);
    5969
    6070  // get_cgihead_info determines the cgi header information for
Note: See TracChangeset for help on using the changeset viewer.