]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix case where port is missing
authorVincent Petry <vincent@vvortex.site>
Tue, 25 Feb 2014 10:22:53 +0000 (11:22 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 25 Feb 2014 10:28:49 +0000 (11:28 +0100)
lib/request.php

index 2a7101efbe1d56c7aa9853ecaa7ec25ab5d6bc1d..d83e432866c985baa9bff700e4b91bfd9db9410d 100755 (executable)
@@ -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'];
                        }
                }