r111480 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111479‎ | r111480 | r111481 >
Date:20:23, 14 February 2012
Author:hashar
Status:ok
Tags:
Comment:
MFT to 1.18wmf r111478

enable purge of HTTPS URLs
Modified paths:
  • /branches/wmf/1.18wmf1/maintenance/purgeList.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/maintenance/purgeList.php
@@ -47,7 +47,7 @@
4848
4949 while ( !feof( $stdin ) ) {
5050 $page = trim( fgets( $stdin ) );
51 - if ( substr( $page, 0, 7 ) == 'http://' ) {
 51+ if ( preg_match( '%^https?://%', $page ) ) {
5252 $urls[] = $page;
5353 } elseif ( $page !== '' ) {
5454 $title = Title::newFromText( $page );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111478enable purge of HTTPS URLshashar20:20, 14 February 2012

Status & tagging log