http/https only please
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 9 Feb 2006 01:48:24 +0000 (01:48 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 9 Feb 2006 01:48:24 +0000 (01:48 +0000)
maintenance/rebuildInterwiki.inc

index bbec308..fea5f64 100644 (file)
@@ -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 ) ) {