https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111483
Revision: 111483 Author: hashar Date: 2012-02-14 20:32:11 +0000 (Tue, 14 Feb 2012) Log Message: ----------- MFT to 1.19wmf1: r111478 enable purge of HTTPS URLs Modified Paths: -------------- branches/wmf/1.19wmf1/maintenance/purgeList.php Modified: branches/wmf/1.19wmf1/maintenance/purgeList.php =================================================================== --- branches/wmf/1.19wmf1/maintenance/purgeList.php 2012-02-14 20:30:40 UTC (rev 111482) +++ branches/wmf/1.19wmf1/maintenance/purgeList.php 2012-02-14 20:32:11 UTC (rev 111483) @@ -47,7 +47,7 @@ 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 ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs