projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
805528a
)
cgi_error_disabled(): Use status code 403 and an appropriate response line
author
Fabian Keil
<fk@fabiankeil.de>
Mon, 23 Jan 2017 13:05:26 +0000
(13:05 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Mon, 23 Jan 2017 13:05:26 +0000
(13:05 +0000)
cgi.c
patch
|
blob
|
history
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.16
7 2017/01/23 13:04:57
fabiankeil Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.16
8 2017/01/23 13:05:12
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
/*********************************************************************
*
* 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);
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;
if (NULL == (exports = default_exports(csp, "cgi-error-disabled")))
{
return JB_ERR_MEMORY;