Pick up $wgServer from HTTP HOST header
Pick up $wgServer from HTTP HOST header

We need to be able to run a wiki on random hosts / ports, and need
redirects and Parsoid internal link detection to work. Parsoid in
particular requires knowledge of a host name.

This patch pulls wgServer out of HTTP HOST. This works for now, but we
should at some point check the security implications of doing so. We
might want to add some validation to ensure that no malicious HOST
headers are passed in.

gwicke/mediawiki-containers,gwicke/mediawiki-containers,wikimedia/mediawiki-containers,wikimedia/mediawiki-containers,gwicke/mediawiki-containers,wikimedia/mediawiki-containers