summaryrefslogtreecommitdiffstats
path: root/lib/private/request.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@vvortex.site>2014-02-25 11:22:53 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-25 11:40:05 +0100
commit432a42d846a7f180811fc9cd396c39175d5e5764 (patch)
treed3772528aa57a42c3556302dbb5d88ee18ac2322 /lib/private/request.php
parent5fb1374b0f24dd034d7a07885ab7cecb420895a1 (diff)
downloadnextcloud-server-432a42d846a7f180811fc9cd396c39175d5e5764.tar.gz
nextcloud-server-432a42d846a7f180811fc9cd396c39175d5e5764.zip
Fix case where port is missing
Forward port of 6d3b5b24fd4f82c1cbfbc4cade5246a0335f8dda to master
Diffstat (limited to 'lib/private/request.php')
-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 14f3bf2cbb7..afd3fda4f2d 100755
--- a/lib/private/request.php
+++ b/lib/private/request.php
@@ -59,7 +59,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'];
}
}