clearify description and enhance validation for path-field in backup-job-planning

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-10-11 14:52:45 +02:00
parent 23d4bee184
commit aa6f3d33eb
5 changed files with 14 additions and 2 deletions

View File

@@ -91,6 +91,7 @@ foreach ($all_jobs as $row) {
$row['data']['destdir'] = makeCorrectDir($row['data']['destdir']);
$customerdocroot = makeCorrectDir(Settings::Get('system.documentroot_prefix').'/'.$row['data']['loginname'].'/');
// create folder if not exists
if (!file_exists($row['data']['destdir'])
&& $row['data']['destdir'] != '/'
&& $row['data']['destdir'] != Settings::Get('system.documentroot_prefix')