Thread:Project:Support desk/$wgServer Undefined index notices with 1.18

I have set $wgServer = ''; in order to run my wiki behind an Apache reverse proxy and in order to support port forwarding when accessing the wiki via SSH on another port than 80 (e.g. port 8000 forwarded to 80). So far that works since years even though the Location header sent to the browser is relative (might violate the standard, but works with major browsers).

But since 1.18 I get PHP notices:

PHP Notice: Undefined index: scheme in /srv/www/htdocs/mediawiki-1.18.0/includes/GlobalFunctions.php on line 572, referer: http://xxx PHP Notice: Undefined index: scheme in /srv/www/htdocs/mediawiki-1.18.0/includes/GlobalFunctions.php on line 574, referer: http://xxx

This is due to new code for handling the URL. Therefore, I would like to ask adding isset checks to GlobalFunctions.php before $bits['scheme'] is accessed.