summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-08-25 14:27:58 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-29 14:24:23 +0200
commitb50a03141bb00ab62ca82a044e1552da44437aa9 (patch)
tree6cf128553e75b1e0041c2ce8c0a341596ad64e61 /lib
parent3647fbe7cd86e743b059889d69b03fcf8207780f (diff)
downloadnextcloud-server-b50a03141bb00ab62ca82a044e1552da44437aa9.tar.gz
nextcloud-server-b50a03141bb00ab62ca82a044e1552da44437aa9.zip
Fix redirection taking care of protocol and port
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index a69a4dffef8..68eab7c4acf 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -268,7 +268,7 @@ class OC {
if (OC::$CLI) {
throw new Exception('Not installed');
} else {
- $url = 'http://' . $_SERVER['SERVER_NAME'] . OC::$WEBROOT . '/index.php';
+ $url = OC::$WEBROOT . '/index.php';
header('Location: ' . $url);
}
exit();