]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5162: mgr:index URL do not produce MGR_INDEX template (#1191)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 1 Dec 2022 18:50:37 +0000 (18:50 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 2 Dec 2022 01:19:21 +0000 (01:19 +0000)
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.

src/errorpage.cc

index a366e58e02dcd7cf7ec0be50f1c381c12348ed92..dc10a8efba6d059c2248d0de9c628c503a6f9133 100644 (file)
@@ -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"
     }
 };