diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-25 12:32:36 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-25 12:32:36 +0100 |
commit | 0be942635dc8ea7ac5b8d85ef33d675d50aaa016 (patch) | |
tree | d07153fc40df1c49bd0cea0f7c67e44ae62eebe5 | |
parent | 3730875b2f01cd36b45c50daa81ba2a8bd6f8ce6 (diff) | |
parent | 153fde697fce8ac605bbc3f2cd9b2bb349bd2d25 (diff) | |
download | nextcloud-server-0be942635dc8ea7ac5b8d85ef33d675d50aaa016.tar.gz nextcloud-server-0be942635dc8ea7ac5b8d85ef33d675d50aaa016.zip |
Merge pull request #7387 from owncloud/stable5-fixhostnamewithport
Fix case where port is missing
-rwxr-xr-x | lib/request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/request.php b/lib/request.php index 2a7101efbe1..d83e432866c 100755 --- a/lib/request.php +++ b/lib/request.php @@ -52,7 +52,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']; } } |