X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgi.c;h=69944dfea5ec79531a4f651bf47a04a632c3f37e;hp=dcaa3591e72b898fa1eefc3ce4a6a839b89440b1;hb=b57c5c88740a9748a2cca103bf7ab0edec9489d5;hpb=3a13f137fd5d604896bb0054edbf49541011e383 diff --git a/cgi.c b/cgi.c index dcaa3591..69944dfe 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -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 $ @@ -38,6 +38,23 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.27 2001/09/16 17:08:54 jongfoster Exp $"; * * 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 * @@ -244,6 +261,9 @@ const struct cgi_dispatcher cgi_dispatcher[] = { 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" }, @@ -699,7 +719,7 @@ char *template_load(struct client_state *csp, const char *templatename) 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; } @@ -753,7 +773,7 @@ void template_fill(char **template_ptr, struct map *exports) char buf[BUFFER_SIZE]; char *tmp_out_buffer; char *file_buffer; - int size; + size_t size; int error; const char *flags;