From: Brion Vibber Date: Thu, 9 Feb 2006 01:48:24 +0000 (+0000) Subject: http/https only please X-Git-Tag: 1.6.0~352 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=182d218d8b9c8ae16a952fe6ef6bd31e318ee060;p=lhc%2Fweb%2Fwiklou.git http/https only please --- diff --git a/maintenance/rebuildInterwiki.inc b/maintenance/rebuildInterwiki.inc index bbec3083dc..fea5f646e8 100644 --- a/maintenance/rebuildInterwiki.inc +++ b/maintenance/rebuildInterwiki.inc @@ -108,7 +108,7 @@ function getRebuildInterwikiSQL() { $iwArray = array(); foreach ( $lines as $line ) { - if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(.*?)\s*$/', $line, $matches ) ) { + if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(https?:\/\/.*?)\s*$/', $line, $matches ) ) { $prefix = strtolower( $matches[1] ); $url = $matches[2]; if ( preg_match( '/(wikipedia|wiktionary|wikisource|wikiquote|wikibooks|wikimedia)\.org/', $url ) ) {