]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix rejection of 200-status in deny_info
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 5 Sep 2011 10:57:01 +0000 (22:57 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 5 Sep 2011 10:57:01 +0000 (22:57 +1200)
src/errorpage.cc

index b484af41e2b8e050e898293ebbaab3fde39fa92e..2574743ce3e5be24c89b75756b565668a17af7e0 100644 (file)
@@ -485,15 +485,15 @@ errorDynamicPageInfoCreate(int id, const char *page_name)
         self_destruct();
     } else if ( /* >= 200 && */ info->page_redirect < 300 && strchr(&(page_name[4]), ':')) {
         // 2xx require a local template file
-        debugs(0, DBG_CRITICAL, "FATAL: status " << info->page_redirect << " is not valid on '" << page_name << "'");
+        debugs(0, DBG_CRITICAL, "FATAL: status " << info->page_redirect << " requires a template on '" << page_name << "'");
         self_destruct();
-    } else if (/* >= 300 && */ info->page_redirect <= 399 && !strchr(&(page_name[4]), ':')) {
+    } else if (info->page_redirect >= 300 && info->page_redirect <= 399 && !strchr(&(page_name[4]), ':')) {
         // 3xx require an absolute URL
-        debugs(0, DBG_CRITICAL, "FATAL: status " << info->page_redirect << " is not valid on '" << page_name << "'");
+        debugs(0, DBG_CRITICAL, "FATAL: status " << info->page_redirect << " requires a URL on '" << page_name << "'");
         self_destruct();
     } else if (info->page_redirect >= 400 /* && <= 599 */ && strchr(&(page_name[4]), ':')) {
         // 4xx/5xx require a local template file
-        debugs(0, DBG_CRITICAL, "FATAL: status " << info->page_redirect << " is not valid on '" << page_name << "'");
+        debugs(0, DBG_CRITICAL, "FATAL: status " << info->page_redirect << " requires a template on '" << page_name << "'");
         self_destruct();
     }
     // else okay.