]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Fri, 9 May 2014 00:14:30 +0000 (18:14 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Fri, 9 May 2014 00:14:30 +0000 (18:14 -0600)
src/redirect.cc

index 267568091b548b70db5d318dd38fec8c0bd81616..a1fbcc8ba74e2741d89da444aa763f8797cf7f79 100644 (file)
@@ -143,14 +143,14 @@ redirectHandleReply(void *data, const HelperReply &reply)
 
                 // check and parse for obsoleted Squid-2 urlgroup feature
                 if (*result == '!') {
-                   static int urlgroupWarning = 0;
-                   if (!urlgroupWarning++)
-                       debugs(85, DBG_IMPORTANT, "UPGRADE WARNING: URL rewriter using obsolete Squid-2 urlgroup feature needs updating.");
-                   if (char *t = strchr(result+1, '!')) {
-                       *t = '\0';
-                       newReply.notes.add("urlgroup", result+1);
-                       result = t + 1;
-                   }
+                    static int urlgroupWarning = 0;
+                    if (!urlgroupWarning++)
+                        debugs(85, DBG_IMPORTANT, "UPGRADE WARNING: URL rewriter using obsolete Squid-2 urlgroup feature needs updating.");
+                    if (char *t = strchr(result+1, '!')) {
+                        *t = '\0';
+                        newReply.notes.add("urlgroup", result+1);
+                        result = t + 1;
+                    }
                 }
 
                 const Http::StatusCode status = static_cast<Http::StatusCode>(atoi(result));