From 86f2fcc908b783b7b29ac60a3b2bb3f65af8681a Mon Sep 17 00:00:00 2001 From: Yevhen Popok Date: Fri, 6 Oct 2023 13:38:08 +0300 Subject: [PATCH] Sync lists of allowed formats in FileUtility.php and .htaccess files (#631) Apply FileUtility.php changes from PR #576 to .htaccess files from PR #534 --- attachments/.htaccess | 4 ++-- upload/.htaccess | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/attachments/.htaccess b/attachments/.htaccess index e0b49ce1..8d945254 100644 --- a/attachments/.htaccess +++ b/attachments/.htaccess @@ -2,7 +2,7 @@ AddHandler cgi-script .php .php2 .php3 .php4 .php5 .php6 .php7 .php8 .php9 .pl . Options -ExecCGI -Indexes -#grant access only if uploading a word-processing or image format - +#grant access only if files with specific extensions are uploaded + Require all granted diff --git a/upload/.htaccess b/upload/.htaccess index cac0ec05..7ba582f1 100644 --- a/upload/.htaccess +++ b/upload/.htaccess @@ -4,7 +4,7 @@ AddHandler cgi-script .php .php2 .php3 .php4 .php5 .php6 .php7 .php8 .php9 .pl . Options -ExecCGI -Indexes -#grant access only if uploading a word-processing or image format - +#grant access only if files with specific extensions are uploaded + Require all granted