diff options
author | Juan Pablo Villafáñez <jvillafanez@solidgear.es> | 2016-08-25 14:27:58 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-08-29 14:24:23 +0200 |
commit | b50a03141bb00ab62ca82a044e1552da44437aa9 (patch) | |
tree | 6cf128553e75b1e0041c2ce8c0a341596ad64e61 /lib | |
parent | 3647fbe7cd86e743b059889d69b03fcf8207780f (diff) | |
download | nextcloud-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.php | 2 |
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(); |