mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-13 18:15:36 +08:00
make the check for backup dir and datadir fail proof
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
bf4cf0ad27
commit
983e523bde
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ class ConfigurationManager
|
|||
throw new InvalidSettingConfigurationException("The path must start with '/', and must not end with '/'! Another option is to use the docker volume name 'nextcloud_aio_backupdir'.");
|
||||
}
|
||||
|
||||
if (str_starts_with($location, rtrim($this->GetNextcloudDatadirMount(), '/'))) {
|
||||
if (str_starts_with($location . '/', rtrim($this->GetNextcloudDatadirMount(), '/') . '/')) {
|
||||
throw new InvalidSettingConfigurationException("The path must not be a children of or equal to NEXTCLOUD_DATADIR, which is currently set to " . $this->GetNextcloudDatadirMount());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue