1e3521c5e1b20bf843a22a397e0e4662141dc4de max Mon Oct 12 01:06:04 2015 -0700 trying to make hgLogin work as a non-root htdocs, refs #16187 diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h index 8c0617b..b1b9080 100644 --- src/inc/cheapcgi.h +++ src/inc/cheapcgi.h @@ -562,16 +562,22 @@ struct cgiParsedVars /* A parsed out cgi variable string */ { struct cgiParsedVars *next; /* In case want to make a list of these. */ char *stringBuf; /* Holds strings inside vars. */ struct cgiVar *list; /* List of variables. */ struct hash *hash; /* Keyed by varName, value is just value, not cgiVar. */ }; struct cgiParsedVars *cgiParsedVarsNew(char *cgiString); /* Build structure containing parsed out cgiString */ void cgiParsedVarsFree(struct cgiParsedVars **pTags); /* Free up memory associated with cgiParsedVars */ +char *cgiScriptDirUrl(); +/* Return the cgi-bin directory path on this webserver. + * This is not the local directory but the <path> part after the server + * in external URLs to this webserver. + * e.g. if CGI is called via http://localhost/subdir/cgi-bin/cgiTest + * the returned string is /subdir/. Must be free'd. */ #endif /* CHEAPCGI_H */