additional mkdir/chmod parameter fixes and cron-lock file adjustments

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-04 10:52:12 +01:00
parent 9ec76c9fd6
commit 9babcde3e5
5 changed files with 15 additions and 7 deletions

View File

@@ -388,7 +388,7 @@ class Store
if (!chmod($path, 0775)) {
throw new \Exception("Cannot write to img directory");
}
}
}
// Make sure mime-type matches an image
if (!in_array(mime_content_type($_FILES[$fieldname]['tmp_name']), ['image/jpeg','image/jpg','image/png','image/gif'])) {