Merge pull request #1134 from nextcloud/fix_redirection

Fix redirection taking care of protocol and port
This commit is contained in:
Joas Schilling 2016-08-29 15:49:25 +02:00 committed by GitHub
commit 490c219893

View 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();