From 39e2d66b62f4f56f6861997640e7703883a3a347 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 19 Aug 2011 17:20:35 +0000 Subject: [PATCH] Use getInternalUrl() instead of getFullUrl() in purgeList.php . This was potentially a serious bug if $wgServer differed from $wgInternalServer in command-line mode (this is not the case on WMF, but might be the case on 3rd-party installs) --- maintenance/purgeList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 226d8baba5..85a7aae2b9 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -52,7 +52,7 @@ class PurgeList extends Maintenance { } elseif ( $page !== '' ) { $title = Title::newFromText( $page ); if ( $title ) { - $url = $title->getFullUrl(); + $url = $title->getInternalUrl(); $this->output( "$url\n" ); $urls[] = $url; if ( $this->getOption( 'purge' ) ) { @@ -105,7 +105,7 @@ class PurgeList extends Maintenance { $urls = array(); foreach( $result as $row ) { $title = Title::makeTitle( $row->page_namespace, $row->page_title ); - $url = $title->getFullUrl(); + $url = $title->getInternalUrl(); $urls[] = $url; } -- 2.20.1