From: Amos Jeffries Date: Tue, 4 Nov 2025 21:23:34 +0000 (+1300) Subject: Do not show arbitrary hostname in cachemgr.cgi output X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fv6;p=thirdparty%2Fsquid.git Do not show arbitrary hostname in cachemgr.cgi output --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index ec2920de2f..c6bfb7da6c 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -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; }