From: Juan Pablo Villafáñez Date: Thu, 25 Aug 2016 12:27:58 +0000 (+0200) Subject: Fix redirection taking care of protocol and port X-Git-Tag: v11.0RC2~737^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b50a03141bb00ab62ca82a044e1552da44437aa9;p=nextcloud-server.git Fix redirection taking care of protocol and port --- 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();