]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix purging of entries by relative [Content-]Location URLs (#2235)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Wed, 10 Sep 2025 05:12:19 +0000 (05:12 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 11 Sep 2025 09:03:26 +0000 (09:03 +0000)
src/clients/Client.cc

index d488b1680167a404fe76f11049b3811794eec6e4..3d6a3da007843add75acda012d288b72de47664e 100644 (file)
@@ -502,7 +502,7 @@ purgeEntriesByHeader(HttpRequest *req, const char *reqUrl, Http::Message *rep, H
                 // for this logic replace the entire request-target URI path
                 tmpUrl.path(hdrUrl);
             } else {
-                tmpUrl.addRelativePath(reqUrl);
+                tmpUrl.addRelativePath(hdrUrl);
             }
             absUrlMaker = tmpUrl.absolute();
             absUrl = absUrlMaker.c_str();