cgi_error_disabled(): Use status code 403 and an appropriate response line
authorFabian Keil <fk@fabiankeil.de>
Mon, 23 Jan 2017 13:05:26 +0000 (13:05 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 23 Jan 2017 13:05:26 +0000 (13:05 +0000)
cgi.c

diff --git a/cgi.c b/cgi.c
index 0f15627..5195eac 100644 (file)
--- 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;