]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not show arbitrary hostname in cachemgr.cgi output v6
authorAmos Jeffries <amosjeffries@squid-cache.org>
Tue, 4 Nov 2025 21:23:34 +0000 (10:23 +1300)
committerAmos Jeffries <yadij@users.noreply.github.com>
Tue, 4 Nov 2025 22:16:16 +0000 (11:16 +1300)
tools/cachemgr.cc

index ec2920de2fa2c9a635da95fdee7674f6672d6ce7..c6bfb7da6c8ed49087a4eea57603962d16e04f1e 100644 (file)
@@ -819,7 +819,7 @@ process_request(cachemgr_request * req)
     }
 
     if (!check_target_acl(req->hostname, req->port)) {
-        snprintf(buf, sizeof(buf), "target %s:%d not allowed in cachemgr.conf\n", req->hostname, req->port);
+        snprintf(buf, sizeof(buf), "target host not allowed in cachemgr.conf\n");
         error_html(buf);
         return 1;
     }