This commit is contained in:
Daniel Schmitz
2021-07-07 14:00:55 +08:00
parent 9f5978e875
commit 7a8b39fad0
2 changed files with 39 additions and 1 deletions

View File

@@ -403,7 +403,7 @@ class Store
// Delete file?
if ($fielddata['value'] !== "" && array_key_exists($fieldname.'_delete', $_POST) && $_POST[$fieldname.'_delete']) {
@unlink($path . explode('?', $fielddata['value'], 2)[0]);
@unlink(\Froxlor\Froxlor::getInstallDir() . '/' . explode('?', $fielddata['value'], 2)[0]);
$save_to = '';
}