[Privoxy-commits] [privoxy] 06/12: cgi_send_user_manual(): Also reject requests if the user-manual
User Git
git at git.privoxy.org
Wed Feb 3 10:56:57 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 21d1a446f5c67adceab5a378a9703be131c0b23b
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Jan 26 10:28:48 2021 +0100
cgi_send_user_manual(): Also reject requests if the user-manual
... directive specifies a https:// URL.
Previously Privoxy would try and fail to open a local file.
---
cgisimple.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cgisimple.c b/cgisimple.c
index 5099a579..600eea58 100644
--- a/cgisimple.c
+++ b/cgisimple.c
@@ -980,7 +980,8 @@ jb_err cgi_send_user_manual(struct client_state *csp,
assert(rsp);
assert(parameters);
- if (0 == strncmpic(csp->config->usermanual, "http://", 7))
+ if (0 == strncmpic(csp->config->usermanual, "http://", 7) ||
+ 0 == strncmpic(csp->config->usermanual, "https://", 8))
{
log_error(LOG_LEVEL_CGI, "Request for local user-manual "
"received while user-manual delivery is disabled.");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list