enable purge of HTTPS URLs
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 14 Feb 2012 20:20:56 +0000 (20:20 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 14 Feb 2012 20:20:56 +0000 (20:20 +0000)
maintenance/purgeList.php

index 85a7aae..f1452bc 100644 (file)
@@ -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 );