Fix redirection taking care of protocol and port

This commit is contained in:
Juan Pablo Villafáñez 2016-08-25 14:27:58 +02:00 committed by Lukas Reschke
parent 3647fbe7cd
commit b50a03141b
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 1 additions and 1 deletions

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