]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix: AnyP:: does not exist in 3.1
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 19 Apr 2011 00:33:25 +0000 (12:33 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 19 Apr 2011 00:33:25 +0000 (12:33 +1200)
src/url.cc

index 8300578a885cf47d81f65be9deee1acea8538c7b..54252af9d820f0eb2b865e370fd78cb60ea3aa25 100644 (file)
@@ -326,7 +326,7 @@ urlParse(const HttpRequestMethod& method, char *url, HttpRequest *request)
         }
 
         // Bug 3183 sanity check: If scheme is present, host must be too.
-        if (protocol != AnyP::PROTO_NONE && (host == NULL || *host == '\0')) {
+        if (protocol != PROTO_NONE && (host == NULL || *host == '\0')) {
             debugs(23, DBG_IMPORTANT, "SECURITY WARNING: Missing hostname in URL '" << url << "'. see access.log for details.");
             return NULL;
         }