Index: branches/wmf/1.18wmf1/maintenance/purgeList.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | |
49 | 49 | while ( !feof( $stdin ) ) { |
50 | 50 | $page = trim( fgets( $stdin ) ); |
51 | | - if ( substr( $page, 0, 7 ) == 'http://' ) { |
| 51 | + if ( preg_match( '%^https?://%', $page ) ) { |
52 | 52 | $urls[] = $page; |
53 | 53 | } elseif ( $page !== '' ) { |
54 | 54 | $title = Title::newFromText( $page ); |