X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fclientpool%2FSquidPurgeClient.php;h=dffe6e14fae363df11c2aa29f2c31eb1f378b2e0;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hp=75f51ef7e30e3773c1eb2bfbf0409cd0f9d73fa9;hpb=aac6b26c0bafc81287bb042304f1d346da94dc89;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/clientpool/SquidPurgeClient.php b/includes/clientpool/SquidPurgeClient.php index 75f51ef7e3..dffe6e14fa 100644 --- a/includes/clientpool/SquidPurgeClient.php +++ b/includes/clientpool/SquidPurgeClient.php @@ -150,7 +150,7 @@ class SquidPurgeClient { if ( IP::isIPv4( $this->host ) ) { $this->ip = $this->host; } elseif ( IP::isIPv6( $this->host ) ) { - throw new MWException( '$wgSquidServers does not support IPv6' ); + throw new MWException( '$wgCdnServers does not support IPv6' ); } else { Wikimedia\suppressWarnings(); $this->ip = gethostbyname( $this->host ); @@ -191,11 +191,11 @@ class SquidPurgeClient { /** * Queue a purge operation * - * @param string $url + * @param string $url Fully expanded URL (with host and protocol) */ public function queuePurge( $url ) { global $wgSquidPurgeUseHostHeader; - $url = CdnCacheUpdate::expand( str_replace( "\n", '', $url ) ); + $url = str_replace( "\n", '', $url ); // sanity $request = []; if ( $wgSquidPurgeUseHostHeader ) { $url = wfParseUrl( $url );