diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
commit | 9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch) | |
tree | 46d1a0dee7febef5c2d57a9f7b972be16a163b3d /includes/ExternalStore.php | |
parent | 78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff) |
update to MediaWiki 1.17.0
Diffstat (limited to 'includes/ExternalStore.php')
-rw-r--r-- | includes/ExternalStore.php | 13 |
1 files changed, 10 insertions, 3 deletions
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 ) |