dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a809eda
)
enable purge of HTTPS URLs
author
Antoine Musso
<hashar@users.mediawiki.org>
Tue, 14 Feb 2012 20:20:56 +0000
(20:20 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Tue, 14 Feb 2012 20:20:56 +0000
(20:20 +0000)
maintenance/purgeList.php
patch
|
blob
|
history
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 );