-const char cgi_rcs[] = "$Id: cgi.c,v 1.27 2001/09/16 17:08:54 jongfoster Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.30 2001/10/02 15:30:57 oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
*
* Revisions :
* $Log: cgi.c,v $
+ * Revision 1.30 2001/10/02 15:30:57 oes
+ * Introduced show-request cgi
+ *
+ * Revision 1.29 2001/09/20 15:47:44 steudten
+ *
+ * Fix BUG: Modify int size to size_t size in fill_template()
+ * - removes big trouble on machines where sizeof(int) != sizeof(size_t).
+ *
+ * Revision 1.28 2001/09/19 18:00:37 oes
+ * - Deletef time() FIXME (Can't fail under Linux either, if
+ * the argument is guaranteed to be in out address space,
+ * which it is.)
+ * - Fixed comments
+ * - Pointer notation cosmetics
+ * - Fixed a minor bug in template_fill(): Failiure of
+ * pcrs_execute() now secure.
+ *
* Revision 1.27 2001/09/16 17:08:54 jongfoster
* Moving simple CGI functions from cgi.c to new file cgisimple.c
*
12, cgi_edit_actions,
"HIDE Edit the actions for (a) specified URL(s)" },
#endif /* def FEATURE_CGI_EDIT_ACTIONS */
+ { "show-request",
+ 12, cgi_show_request,
+ "Show the client's request headers." },
{ "",
0, cgi_default,
"Junkbuster main page" },
if(NULL == (fp = fopen(buf, "r")))
{
- log_error(LOG_LEVEL_ERROR, "error loading template %s: %E", buf);
+ log_error(LOG_LEVEL_FATAL, "error loading template %s: %E", buf);
return NULL;
}
char buf[BUFFER_SIZE];
char *tmp_out_buffer;
char *file_buffer;
- int size;
+ size_t size;
int error;
const char *flags;