From 110cdef5c2b42cde1d4435654fa52ca3ab4e86bd Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 25 Apr 2024 17:29:39 +0200 Subject: [PATCH] [anonymous] about:config was available in anonymous mode --- src/protocol/about.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/about.c b/src/protocol/about.c index 46cc09f2..6a07e0c2 100644 --- a/src/protocol/about.c +++ b/src/protocol/about.c @@ -8,6 +8,7 @@ #include "cache/cache.h" #include "config/conf.h" +#include "config/options.h" #include "network/connection.h" #include "protocol/about.h" #include "protocol/protocol.h" @@ -97,7 +98,7 @@ about_protocol_handler(struct connection *conn) if (cached && !cached->content_type) { #ifndef CONFIG_SMALL { - if (!strncmp(conn->uri->data, "config", 6)) { + if (!strncmp(conn->uri->data, "config", 6) && !get_cmd_opt_bool("anonymous")) { char *str; if (conn->referrer && conn->referrer->protocol == PROTOCOL_ABOUT) {