diff options
author | Vincent Petry <vincent@vvortex.site> | 2014-02-25 11:22:53 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-25 11:40:05 +0100 |
commit | 432a42d846a7f180811fc9cd396c39175d5e5764 (patch) | |
tree | d3772528aa57a42c3556302dbb5d88ee18ac2322 /lib/private/request.php | |
parent | 5fb1374b0f24dd034d7a07885ab7cecb420895a1 (diff) | |
download | nextcloud-server-432a42d846a7f180811fc9cd396c39175d5e5764.tar.gz nextcloud-server-432a42d846a7f180811fc9cd396c39175d5e5764.zip |
Fix case where port is missing
Forward port of 6d3b5b24fd4f82c1cbfbc4cade5246a0335f8dda to master
Diffstat (limited to 'lib/private/request.php')
-rwxr-xr-x | lib/private/request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/request.php b/lib/private/request.php index 14f3bf2cbb7..afd3fda4f2d 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -59,7 +59,7 @@ class OC_Request { if (isset($_SERVER['HTTP_HOST'])) { $host = $_SERVER['HTTP_HOST']; } - if (isset($_SERVER['SERVER_NAME'])) { + else if (isset($_SERVER['SERVER_NAME'])) { $host = $_SERVER['SERVER_NAME']; } } |