]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix redirection taking care of protocol and port 1134/head
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>
Thu, 25 Aug 2016 12:27:58 +0000 (14:27 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 29 Aug 2016 12:24:23 +0000 (14:24 +0200)
lib/base.php

index a69a4dffef81253a2f553af0257fe735ea6cde51..68eab7c4acf692e6ca41ac47a8205c80e4a0f5c2 100644 (file)
@@ -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();