]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix redirection taking care of protocol and port (#25957)
authorVicDeo <dubiniuk@owncloud.com>
Mon, 29 Aug 2016 07:27:38 +0000 (10:27 +0300)
committerThomas Müller <DeepDiver1975@users.noreply.github.com>
Mon, 29 Aug 2016 07:27:38 +0000 (09:27 +0200)
lib/base.php

index 1a6d1b8d3f6533fac5fab4966536779dfb738221..e366834935e92adf9538e63a27b66be0b502a61e 100644 (file)
@@ -291,7 +291,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();