From 5cc3937b6bc38293ec921a5cf00018b48b668dc6 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 20 Oct 2021 10:18:27 +0200 Subject: [PATCH] secure gallery upload - add csrf token - add random int to filenmae - check for image file suffix --- acp/core/files.upload_gallery.php | 43 ++++++++++++++++++++------- acp/templates/gallery_upload_form.tpl | 4 +-- 2 files changed, 35 insertions(+), 12 deletions(-) diff --git a/acp/core/files.upload_gallery.php b/acp/core/files.upload_gallery.php index 3d0df7aa..d0367091 100644 --- a/acp/core/files.upload_gallery.php +++ b/acp/core/files.upload_gallery.php @@ -1,5 +1,21 @@