Differences From:
File
src/cgi.c
part of check-in
[285929373757b]
- Add the %w and %W formatting options for internal printf usage. Use
these formatting characters to render wiki. Fix additional problems of
unterminated wiki on webpage rendering by using %w. (There are probably
more problems yet to be discovered and fixed.)
by
drh on
2007-11-22 22:55:05.
[view]
To:
File
src/cgi.c
part of check-in
[fb358ca492]
- Progress toward getting ticketing working. We can enter a
new ticket and display it. Cannot yet edit a ticket.
by
drh on
2007-11-24 19:33:46.
Also file
src/cgi.c
part of check-in
[d0305b305a]
- Merged mainline into my branch to get the newest application.
by
aku on
2007-12-05 08:07:46.
[view]
@@ -726,8 +726,20 @@
}
}
CGIDEBUG(("no-match [%s]\n", zName));
return zDefault;
+}
+
+/*
+** Return the name of the i-th CGI parameter. Return NULL if there
+** are fewer than i registered CGI parmaeters.
+*/
+const char *cgi_parameter_name(int i){
+ if( i>=0 && i<nUsedQP ){
+ return aParamQP[i].zName;
+ }else{
+ return 0;
+ }
}
/*
** Print CGI debugging messages.