From 070e904afa588ad9aebd9403755c0fda0c010a6c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 23 Jan 2017 13:05:26 +0000 Subject: [PATCH] cgi_error_disabled(): Use status code 403 and an appropriate response line --- cgi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2