Expand URLs in SquidPurgeClient too
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 5 Oct 2011 20:04:34 +0000 (20:04 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 5 Oct 2011 20:04:34 +0000 (20:04 +0000)
includes/SquidPurgeClient.php

index 3de6857..506ada9 100644 (file)
@@ -147,7 +147,7 @@ class SquidPurgeClient {
         * @param $url string
         */
        public function queuePurge( $url ) {
-               $url = str_replace( "\n", '', $url );
+               $url = SquidUpdate::expand( str_replace( "\n", '', $url ) );
                $this->requests[] = "PURGE $url HTTP/1.0\r\n" .
                        "Connection: Keep-Alive\r\n" .
                        "Proxy-Connection: Keep-Alive\r\n" .