Merge pull request #1134 from nextcloud/fix_redirection
Fix redirection taking care of protocol and port
This commit is contained in:
commit
490c219893
|
@ -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