Differences From:
File
src/cgi.c
part of check-in
[e7cf189265]
- Changes to cgi.c in check-in e63a9fd9d0 broke the windows build because of undefined socklen_t. Added the appropriate include file
by
mjanssen on
2007-10-04 17:37:00.
[view]
To:
File
src/cgi.c
part of check-in
[677aa71bca]
- The g.zExtra parameter is now always available as P("name"). This
means the /wiki/xyz and /wiki?name=xyz are equivalent URLs.
by
drh on
2007-10-12 22:56:18.
[view]
@@ -307,8 +307,14 @@
free(zLocation);
cgi_reply();
exit(0);
}
+void cgi_redirectf(const char *zFormat, ...){
+ va_list ap;
+ va_start(ap, zFormat);
+ cgi_redirect(vmprintf(zFormat, ap));
+ va_end(ap);
+}
/*
** Information about all query parameters and cookies are stored
** in these variables.
@@ -330,9 +336,9 @@
**
** zName and zValue are not copied and must not change or be
** deallocated after this routine returns.
*/
-static void cgi_set_parameter_nocopy(const char *zName, const char *zValue){
+void cgi_set_parameter_nocopy(const char *zName, const char *zValue){
if( nAllocQP<=nUsedQP ){
nAllocQP = nAllocQP*2 + 10;
aParamQP = realloc( aParamQP, nAllocQP*sizeof(aParamQP[0]) );
if( aParamQP==0 ) exit(1);