Index: trunk/phase3/includes/ExternalStore.php |
— | — | @@ -32,11 +32,18 @@ |
33 | 33 | if( !$wgExternalStores ) |
34 | 34 | return false; |
35 | 35 | |
36 | | - @list( $proto, $path ) = explode( '://', $url, 2 ); |
37 | | - /* Bad URL */ |
38 | | - if( $path == '' ) |
| 36 | + $parts = explode( '://', $url, 2 ); |
| 37 | + |
| 38 | + if ( count( $parts ) != 2 ) { |
39 | 39 | return false; |
| 40 | + } |
40 | 41 | |
| 42 | + list( $proto, $path ) = $parts; |
| 43 | + |
| 44 | + if ( $path == '' ) { // Bad URL |
| 45 | + return false; |
| 46 | + } |
| 47 | + |
41 | 48 | $store = self::getStoreObject( $proto, $params ); |
42 | 49 | if ( $store === false ) |
43 | 50 | return false; |