[Pkg-owncloud-commits] [owncloud] 56/66: Fix case where port is missing

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 22:49:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.

commit 153fde697fce8ac605bbc3f2cd9b2bb349bd2d25
Author: Vincent Petry <vincent at vvortex.site>
Date:   Tue Feb 25 11:22:53 2014 +0100

    Fix case where port is missing
---
 lib/request.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/request.php b/lib/request.php
index 2a7101e..d83e432 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'];
 			}
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list