X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgisimple.c;h=2b6cfbddd45d6d7c71670f7be52167d19eb8cc2b;hp=947b79b98889e5190e08c5e9bbe8783732df260d;hb=1545d9ac84338ec63463d418d9498ddfb08d01a2;hpb=a33d9929dd2a278465d763d18654072b13b51815 diff --git a/cgisimple.c b/cgisimple.c index 947b79b9..2b6cfbdd 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.100 2011/02/14 16:03:53 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.101 2011/02/14 16:04:55 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -711,7 +711,13 @@ jb_err cgi_send_user_manual(struct client_state *csp, } else if (NULL != strchr(filename, '/') || NULL != strstr(filename, "..")) { - /* Check parameter for hack attempts */ + /* + * We currently only support a flat file + * hierachy for the documentation. + */ + log_error(LOG_LEVEL_ERROR, + "Rejecting the request to serve '%s' as it contains '/' or '..'", + filename); return JB_ERR_CGI_PARAMS; }