summaryrefslogtreecommitdiffstats
path: root/ocs/providers.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-31 20:26:09 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-31 20:26:09 +0200
commitd4ea853fcf3b3f82e2e489c81280b27bfbd62bf3 (patch)
tree606ec92fd57a5486d6e3468b8e1e1b463779c77d /ocs/providers.php
parentf0bd57186686689d0f65c356cd7f226c045dd6e3 (diff)
downloadnextcloud-server-d4ea853fcf3b3f82e2e489c81280b27bfbd62bf3.tar.gz
nextcloud-server-d4ea853fcf3b3f82e2e489c81280b27bfbd62bf3.zip
use our own serverHost call so that ownCloud works with reverse proxy servers
Diffstat (limited to 'ocs/providers.php')
-rw-r--r--ocs/providers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/providers.php b/ocs/providers.php
index 397d2f06f5d..adaa28db6cd 100644
--- a/ocs/providers.php
+++ b/ocs/providers.php
@@ -23,7 +23,7 @@
require_once('../lib/base.php');
-$url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/';
+$url='http://'.substr(OCP\Util::getServerHost().$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/';
echo('
<providers>