Skip to content

Commit

Permalink
fix wrong escaping of backslash in class-names when updating cronjobs…
Browse files Browse the repository at this point in the history
…_run table; add missing validateFormField-method for type 'image' (needs to be present but image-validation is handled elsewhere

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Dec 5, 2023
1 parent 02ae52e commit 82dc76f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install/updates/froxlor/update_2.1.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,18 @@
}

Update::showUpdateStep("Adjusting cronjobs");
Database::query("
$cfupd_stmt = Database::prepare("
UPDATE `" . TABLE_PANEL_CRONRUNS . "` SET
`module`= 'froxlor/export',
`cronfile` = 'export',
`cronclass` = '\\Froxlor\\Cron\\System\\ExportCron',
`cronclass` = :cc,
`interval` = '1 HOUR',
`desc_lng_key` = 'cron_export'
WHERE `module` = 'froxlor/backup'
");
Database::pexecute($cfupd_stmt, [
'cc' => '\\Froxlor\\Cron\\System\\ExportCron'
]);
Update::lastStepStatus(0);

Update::showUpdateStep("Adjusting system for data-export function");
Expand Down
6 changes: 6 additions & 0 deletions lib/Froxlor/Validate/Form/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,10 @@ public static function validateFormFieldTextarea($fieldname, $fielddata, $newfie

return $returnvalue;
}

public static function validateFormFieldImage($fieldname, $fielddata, $newfieldvalue)
{
// validation is handled in \Froxlor\Settings\Store::storeSettingImage()
return true;
}
}

0 comments on commit 82dc76f

Please sign in to comment.