diff options
author | Vincent Petry <vincent@vvortex.site> | 2014-02-25 14:22:53 +0400 |
---|---|---|
committer | Vincent Petry <vincent@vvortex.site> | 2014-02-25 14:22:53 +0400 |
commit | 6d3b5b24fd4f82c1cbfbc4cade5246a0335f8dda (patch) | |
tree | 864aaa22b386a85567b4ae4ec3a01492da45debb /lib | |
parent | 4286eeb53153a02b83bed4446488cf510111b3fd (diff) |
Fix case where port is missing
Diffstat (limited to 'lib')
-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 6717d8e68eb..f5b5aa0b818 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -58,7 +58,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']; } } |