Index: trunk/extensions/Farmer/MediaWikiFarmer.php |
— | — | @@ -276,7 +276,7 @@ |
277 | 277 | if( is_null( $url ) ) |
278 | 278 | $url = $_SERVER['REQUEST_URI']; |
279 | 279 | |
280 | | - if ( $result = parse_url( $url ) ) { |
| 280 | + if ( $result = parse_url( $url, PHP_URL_HOST ) ) { |
281 | 281 | if ( $host = $result['host'] ) { |
282 | 282 | if ( preg_match( $farmer->_matchRegExp, $host, $matches ) === 1 ) { |
283 | 283 | if ( array_key_exists( $farmer->_matchOffset, $matches ) ) { |