X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=cgi.c;h=6352b5927326e4079e102c4ecbe055dc0b1b6563;hb=1b4d4f3ab4ec936d30c27fac8eb90ebba51a7412;hp=0cc7fe49669eb3d0a1c16ffae4194c5a43d74037;hpb=40e7fbc3038c7c66a5ed20e07eb9f1a591e070ff;p=privoxy.git diff --git a/cgi.c b/cgi.c index 0cc7fe49..6352b592 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.64 2002/04/24 02:17:21 oes Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.66 2002/04/26 18:32:57 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -38,6 +38,14 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.64 2002/04/24 02:17:21 oes Exp $"; * * Revisions : * $Log: cgi.c,v $ + * Revision 1.66 2002/04/26 18:32:57 jongfoster + * Fixing a memory leak on error + * + * Revision 1.65 2002/04/26 12:53:51 oes + * - New function add_help_link + * - default_exports now exports links to the user manual + * and a prefix for links into the config chapter + * * Revision 1.64 2002/04/24 02:17:21 oes * - Better descriptions for CGIs * - Hide edit-actions, more shortcuts @@ -574,7 +582,7 @@ static struct map *parse_cgi_parameters(char *argstring); * Description : Checks if a request URL has either the magical * hostname CGI_SITE_1_HOST (usually http://p.p/) or * matches CGI_SITE_2_HOST CGI_SITE_2_PATH (usually - * http://ijbswa.sourceforge.net/config). If so, it passes + * http://config.privoxy.org/). If so, it passes * the (rest of the) path onto dispatch_known_cgi, which * calls the relevant CGI handler function. * @@ -1249,11 +1257,11 @@ jb_err cgi_error_bad_param(struct client_state *csp, char *add_help_link(const char *item, struct configuration_spec *config) { - char *result = strdup(""); + char *result; if (!item) return NULL; - - string_append(&result, "usermanual); string_append(&result, HELP_LINK_PREFIX); string_join (&result, string_toupper(item));