From: Fabian Keil Date: Mon, 23 Jan 2017 13:05:26 +0000 (+0000) Subject: cgi_error_disabled(): Use status code 403 and an appropriate response line X-Git-Tag: v_3_0_27~231 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=070e904afa5;hp=805528ae92955775fec0292126cee05a21241b0c cgi_error_disabled(): Use status code 403 and an appropriate response line --- diff --git a/cgi.c b/cgi.c index 0f15627c..5195eac3 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.167 2017/01/23 13:04:57 fabiankeil Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.168 2017/01/23 13:05:12 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -1051,6 +1051,8 @@ jb_err cgi_error_disabled(const struct client_state *csp, assert(csp); assert(rsp); + rsp->status = strdup_or_die("403 Request not trusted or feature disabled"); + if (NULL == (exports = default_exports(csp, "cgi-error-disabled"))) { return JB_ERR_MEMORY;