mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
add support for Windows paths
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
8fedcb4810
commit
95ba20d7f9
4 changed files with 13 additions and 10 deletions
|
|
@ -283,6 +283,7 @@ class ConfigurationManager
|
|||
$allowedPrefixes = [
|
||||
'/mnt/',
|
||||
'/media/',
|
||||
'/host_mnt/',
|
||||
];
|
||||
|
||||
$isValidPath = false;
|
||||
|
|
@ -298,7 +299,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
if(!$isValidPath) {
|
||||
throw new InvalidSettingConfigurationException("The path must start with '/mnt/' or '/media/' or be equal to '/var/backups'.");
|
||||
throw new InvalidSettingConfigurationException("The path must start with '/mnt/', '/media/' or '/host_mnt/' or be equal to '/var/backups'.");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue