https://bugzilla.wikimedia.org/show_bug.cgi?id=32823
Web browser: ---
Bug #: 32823
Summary: Undefined index notices when $wgServer is empty string
(introduced with 1.18)
Product: MediaWiki
Version: 1.18.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Installation
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
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. local port 8000 forwarded to 80). This way I
avoid sending an absolute URL back to the client for certain actions (like
login/logout, search).
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 when $wgServer is set to such an empty string:
###########
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l