Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-25 15:32:41 +0400
committerVincent Petry <pvince81@owncloud.com>2014-02-25 15:32:41 +0400
commit678afc4906382e8b7c18d4acf3b024b14c0c85aa (patch)
tree864aaa22b386a85567b4ae4ec3a01492da45debb
parent4286eeb53153a02b83bed4446488cf510111b3fd (diff)
parent6d3b5b24fd4f82c1cbfbc4cade5246a0335f8dda (diff)
Merge pull request #7386 from owncloud/stable6-fixhostnamewithport
Fix case where port is missing
-rwxr-xr-xlib/private/request.php2
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'];
}
}