mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Fix redirection taking care of protocol and port
This commit is contained in:
parent
3647fbe7cd
commit
b50a03141b
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user