a7ebe0bcfe3c245f91bb882f29c747bc443edcb5 kent Tue Jul 23 10:50:13 2013 -0700 Making new edwCorrectFileTags utility to correct file tags after upload. Moving stuff from edwChangeFormat to library to reuse in this context. diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h index 2332bd1..46ef562 100644 --- src/inc/cheapcgi.h +++ src/inc/cheapcgi.h @@ -439,30 +439,35 @@ * has a lot of possible parameters. */ boolean cgiParseInput(char *input, struct hash **retHash, struct cgiVar **retList); /* Parse cgi-style input into a hash table and list. This will alter * the input data. The hash table will contain references back * into input, so please don't free input until you're done with * the hash. Prints message and returns FALSE if there's an error. * To clean up - slFreeList, hashFree, and only then free input. */ void cgiParseInputAbort(char *input, struct hash **retHash, struct cgiVar **retList); /* Parse cgi-style input into a hash table and list as above but abort if there's an error. */ +char *cgiStringNewValForVar(char *cgiIn, char *varName, char *newVal); +/* Return a cgi-encoded string with newVal in place of what was oldVal. + * It is an error for var not to exist. Do a freeMem of this string + * when you are through. */ + void cgiSimpleTableStart(); /* start HTML table -- no customization. Leaves room * for a fancier implementation */ void cgiTableEnd(); /* end HTML table */ void cgiMakeSubmitButton(); /* Make 'submit' type button. */ void cgiMakeResetButton(); /* Make 'reset' type button. */ void cgiMakeClearButton(char *form, char *field); /* Make button to clear a text field. */