]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 12 Sep 2025 03:27:40 +0000 (15:27 +1200)
src/clients/Client.cc

index 3ccff7e112f07de303387e385cfd4c0e61ee36dc..5b90ec0980c65761e78e182b808ae7dbf2642fd1 100644 (file)
@@ -497,7 +497,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();