Changeset 873


Ignore:
Timestamp:
2000-01-26T11:46:54+13:00 (22 years ago)
Author:
sjboddie
Message:

changes to get fastcgi working properly

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

Legend:

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

    r776 r873  
    2828/*
    2929   $Log$
     30   Revision 1.13  2000/01/25 22:46:54  sjboddie
     31   changes to get fastcgi working properly
     32
    3033   Revision 1.12  1999/11/08 20:26:38  sjboddie
    3134   added multiplevalue option to cgiarginfo
     
    507510  }
    508511}
     512
     513// fcgienv will be loaded with environment name-value pairs
     514// if using fastcgi (had to do this as getenv doesn't work
     515// with our implementation of fastcgi). if fcgienv is empty
     516// we'll simply use getenv
     517text_t gsdl_getenv (const text_t &name, text_tmap &fcgienv) {
     518  if (fcgienv.empty()) {
     519    char *n = name.getcstr();
     520    char *v = getenv(n);
     521    delete n;
     522    if (v != NULL) return v;
     523    return "";
     524
     525  } else return fcgienv[name];
     526}
  • trunk/gsdl/src/recpt/cgiutils.h

    r776 r873  
    9696void args_tounicode (cgiargsclass &args, inconvertclass &inconvert);
    9797
     98text_t gsdl_getenv (const text_t &name, text_tmap &fcgienv);
     99
    98100#endif
Note: See TracChangeset for help on using the changeset viewer.