From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 26 Jan 2021 09:28:48 +0000 (+0100)
Subject: cgi_send_user_manual(): Also reject requests if the user-manual
X-Git-Tag: v_3_0_32~101
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/user-manual/faq/static/@default-cgi@?a=commitdiff_plain;h=21d1a446f5c67adceab5a378a9703be131c0b23b;p=privoxy.git

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.
---

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.");