diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 21:49:35 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 21:49:35 +0100 |
commit | 0a9b8242eeffa16eba84b59603be967d0bcc5bae (patch) | |
tree | 2e1516957fe3ec1a2f073aa893a18cf2de7e6bc3 /lib/private/appframework | |
parent | eae6471105920654863f024020af91d219c82013 (diff) | |
download | nextcloud-server-0a9b8242eeffa16eba84b59603be967d0bcc5bae.tar.gz nextcloud-server-0a9b8242eeffa16eba84b59603be967d0bcc5bae.zip |
properly initialize OC::$WEBROOT and host name
Diffstat (limited to 'lib/private/appframework')
-rw-r--r-- | lib/private/appframework/http/request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php index dad5cb050ca..959ea273280 100644 --- a/lib/private/appframework/http/request.php +++ b/lib/private/appframework/http/request.php @@ -625,7 +625,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { * @return string Server host */ public function getInsecureServerHost() { - $host = null; + $host = 'localhost'; if (isset($this->server['HTTP_X_FORWARDED_HOST'])) { if (strpos($this->server['HTTP_X_FORWARDED_HOST'], ',') !== false) { $parts = explode(',', $this->server['HTTP_X_FORWARDED_HOST']); |