Changeset 873 for trunk/gsdl/src/recpt/cgiutils.cpp
- Timestamp:
- 2000-01-26T11:46:54+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/cgiutils.cpp
r776 r873 28 28 /* 29 29 $Log$ 30 Revision 1.13 2000/01/25 22:46:54 sjboddie 31 changes to get fastcgi working properly 32 30 33 Revision 1.12 1999/11/08 20:26:38 sjboddie 31 34 added multiplevalue option to cgiarginfo … … 507 510 } 508 511 } 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 517 text_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 }
Note:
See TracChangeset
for help on using the changeset viewer.