From: Vincent Petry Date: Tue, 25 Feb 2014 10:22:53 +0000 (+0100) Subject: Fix case where port is missing X-Git-Tag: v5.0.15RC1~1^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=153fde697fce8ac605bbc3f2cd9b2bb349bd2d25;p=nextcloud-server.git Fix case where port is missing --- 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']; } }