dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
enable purge of HTTPS URLs
[lhc/web/wiklou.git]
/
maintenance
/
purgeList.php
diff --git
a/maintenance/purgeList.php
b/maintenance/purgeList.php
index
85a7aae
..
f1452bc
100644
(file)
--- 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 );