diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-29 15:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-29 15:49:25 +0200 |
commit | 490c219893340f25b0e2983f047c8a5bff0b2f1a (patch) | |
tree | 07a62c932cd3202e47ba38a6a4474d85ad9b98d5 /lib | |
parent | 05228a19c4428acd3979a8d8cedd72743614ca65 (diff) | |
parent | b50a03141bb00ab62ca82a044e1552da44437aa9 (diff) | |
download | nextcloud-server-490c219893340f25b0e2983f047c8a5bff0b2f1a.tar.gz nextcloud-server-490c219893340f25b0e2983f047c8a5bff0b2f1a.zip |
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.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(); |