From: Antoine Musso Date: Tue, 14 Feb 2012 20:20:56 +0000 (+0000) Subject: enable purge of HTTPS URLs X-Git-Tag: 1.31.0-rc.0~24713 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=470694568695e9aa0bdcc07c2602eb023c43aeeb;p=lhc%2Fweb%2Fwiklou.git enable purge of HTTPS URLs --- diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 85a7aae2b9..f1452bca9d 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -47,7 +47,7 @@ class PurgeList extends Maintenance { while ( !feof( $stdin ) ) { $page = trim( fgets( $stdin ) ); - if ( substr( $page, 0, 7 ) == 'http://' ) { + if ( preg_match( '%^https?://%', $page ) ) { $urls[] = $page; } elseif ( $page !== '' ) { $title = Title::newFromText( $page );