r50182 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50181‎ | r50182 | r50183 >
Date:16:14, 4 May 2009
Author:jan
Status:deferred
Tags:
Comment:
Resolve bug in MediaWikiFarmer.php(see diff)
Modified paths:
  • /trunk/extensions/Farmer/MediaWikiFarmer.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Farmer/MediaWikiFarmer.php
@@ -276,7 +276,7 @@
277277 if( is_null( $url ) )
278278 $url = $_SERVER['REQUEST_URI'];
279279
280 - if ( $result = parse_url( $url ) ) {
 280+ if ( $result = parse_url( $url, PHP_URL_HOST ) ) {
281281 if ( $host = $result['host'] ) {
282282 if ( preg_match( $farmer->_matchRegExp, $host, $matches ) === 1 ) {
283283 if ( array_key_exists( $farmer->_matchOffset, $matches ) ) {

Status & tagging log