mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #7835 from nextcloud/fix-empty-overwrite-url-in-setup
Fix case when overwrite URL is empty during setup
This commit is contained in:
commit
fc9f5fdfc4
2 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class UpdateHtaccess extends Command {
|
|||
$output->writeln('.htaccess has been updated');
|
||||
return 0;
|
||||
} else {
|
||||
$output->writeln('<error>Error updating .htaccess file, not enough permissions?</error>');
|
||||
$output->writeln('<error>Error updating .htaccess file, not enough permissions or "overwrite.cli.url" set to an invalid URL?</error>');
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -437,6 +437,9 @@ class Setup {
|
|||
return false;
|
||||
}
|
||||
$webRoot = parse_url($webRoot, PHP_URL_PATH);
|
||||
if ($webRoot === null) {
|
||||
return false;
|
||||
}
|
||||
$webRoot = rtrim($webRoot, '/');
|
||||
} else {
|
||||
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
|
||||
|
|
|
|||
Loading…
Reference in a new issue