1
0
Fork 0

[anonymous] about:config was available in anonymous mode

This commit is contained in:
Witold Filipczyk 2024-04-25 17:29:39 +02:00
parent 23c5c8b866
commit 110cdef5c2
1 changed files with 2 additions and 1 deletions

View File

@ -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) {