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
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-29 16:49:25 +0300
committerGitHub <noreply@github.com>2016-08-29 16:49:25 +0300
commit490c219893340f25b0e2983f047c8a5bff0b2f1a (patch)
tree07a62c932cd3202e47ba38a6a4474d85ad9b98d5 /lib
parent05228a19c4428acd3979a8d8cedd72743614ca65 (diff)
parentb50a03141bb00ab62ca82a044e1552da44437aa9 (diff)
Merge pull request #1134 from nextcloud/fix_redirection
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();