From 9db190c7e736ec8d063187d4241b59feaf7dc2d1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 22 Jun 2011 11:28:20 +0200 Subject: update to MediaWiki 1.17.0 --- includes/ExternalStore.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'includes/ExternalStore.php') diff --git a/includes/ExternalStore.php b/includes/ExternalStore.php index 6a779079..ddb40c32 100644 --- a/includes/ExternalStore.php +++ b/includes/ExternalStore.php @@ -32,10 +32,17 @@ class ExternalStore { if( !$wgExternalStores ) return false; - @list( $proto, $path ) = explode( '://', $url, 2 ); - /* Bad URL */ - if( $path == '' ) + $parts = explode( '://', $url, 2 ); + + if ( count( $parts ) != 2 ) { + return false; + } + + list( $proto, $path ) = $parts; + + if ( $path == '' ) { // Bad URL return false; + } $store = self::getStoreObject( $proto, $params ); if ( $store === false ) -- cgit v1.2.2