cgi_send_user_manual(): Also reject requests if the user-manual
authorFabian Keil <fk@fabiankeil.de>
Tue, 26 Jan 2021 09:28:48 +0000 (10:28 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 3 Feb 2021 10:55:40 +0000 (11:55 +0100)
... directive specifies a https:// URL.

Previously Privoxy would try and fail to open a local file.

cgisimple.c

index 5099a57..600eea5 100644 (file)
@@ -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.");