From 3b6cfeff73893fc506ed64aeff9a6beaf1014dbe Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 13 Dec 2023 20:59:01 -0500 Subject: [PATCH] Add cfg and ps1 to the allow file upload list --- client_file_upload_modal.php | 2 +- post/file.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client_file_upload_modal.php b/client_file_upload_modal.php index aedfc446..1083e449 100644 --- a/client_file_upload_modal.php +++ b/client_file_upload_modal.php @@ -35,7 +35,7 @@
- +
Up to 20 files can be uploaded at once by holding down CTRL and selecting files diff --git a/post/file.php b/post/file.php index 0fa409b2..0e3b62a2 100644 --- a/post/file.php +++ b/post/file.php @@ -22,7 +22,7 @@ if (isset($_POST['upload_files'])) { 'size' => $_FILES['file']['size'][$i] ]; - if ($file_reference_name = checkFileUpload($single_file, array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'odt', 'csv', 'xls', 'xlsx', 'ods', 'pptx', 'odp', 'zip', 'tar', 'gz', 'xml', 'msg', 'json', 'wav', 'mp3', 'ogg', 'mov', 'mp4', 'av1', 'ovpn'))) { + if ($file_reference_name = checkFileUpload($single_file, array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'odt', 'csv', 'xls', 'xlsx', 'ods', 'pptx', 'odp', 'zip', 'tar', 'gz', 'xml', 'msg', 'json', 'wav', 'mp3', 'ogg', 'mov', 'mp4', 'av1', 'ovpn', 'cfg', 'ps1'))) { $file_tmp_path = $_FILES['file']['tmp_name'][$i];