From b50a03141bb00ab62ca82a044e1552da44437aa9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Thu, 25 Aug 2016 14:27:58 +0200 Subject: [PATCH] Fix redirection taking care of protocol and port --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5