From: Eduard Bagdasaryan Date: Thu, 1 Dec 2022 18:50:37 +0000 (+0000) Subject: Bug 5162: mgr:index URL do not produce MGR_INDEX template (#1191) X-Git-Tag: SQUID_6_0_1~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29304c72e91ad2a3c3b2fd6a9e1a5223e4ef4bf0;p=thirdparty%2Fsquid.git Bug 5162: mgr:index URL do not produce MGR_INDEX template (#1191) Satisfy mgr:index requests using * a 200 OK response with a body derived from the MGR_INDEX template (if that template file was found during (re)configuration) or * a 404 (Not Found) error response (otherwise). Broken in 2019 commit 7e6eabb, when Squid started replying using a 200 OK response with a hard-coded "mgr_index" text as a body, ignoring any configured MGR_INDEX template. --- diff --git a/src/errorpage.cc b/src/errorpage.cc index a366e58e02..dc10a8efba 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -153,6 +153,7 @@ static const struct { const char *text; } +/// error messages that cannot be configured/customized externally error_hard_text[] = { { @@ -179,10 +180,6 @@ error_hard_text[] = { { ERR_REQUEST_START_TIMEOUT, "request start timedout" - }, - { - MGR_INDEX, - "mgr_index" } };