[Pkg-owncloud-commits] [owncloud] 130/145: Fix case where port is missing

David Prévot taffit at moszumanska.debian.org
Wed Feb 26 16:27:48 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

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

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

diff --git a/lib/private/request.php b/lib/private/request.php
index 6717d8e..f5b5aa0 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'];
 			}
 		}

-- 
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