Skip to content

Commit

Permalink
Sync lists of allowed formats in FileUtility.php and .htaccess files (#…
Browse files Browse the repository at this point in the history
…631)

Apply FileUtility.php changes from PR #576 to .htaccess files from PR #534
  • Loading branch information
xalt7x authored Oct 6, 2023
1 parent 19f1fcd commit 86f2fcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions attachments/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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
<FilesMatch "(?i)\.(pdf|docx?|rtf|odt?g?|txt|wpd|jpe?g|png|csv|xlsx?|ppt|msg|heic|tiff?|html?|bmp|wps|xps)$">
#grant access only if files with specific extensions are uploaded
<FilesMatch "(?i)\.(bmp|csv|doc|docx|heic|html|jpeg|jpg|msg|odg|odt|pages|pdf|png|ppt|pptx|rtf|tiff|wpd|wps|xls|xlsx|xps)$">
Require all granted
</FilesMatch>
4 changes: 2 additions & 2 deletions upload/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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
<FilesMatch "(?i)\.(pdf|docx?|rtf|odt?g?|txt|wpd|jpe?g|png|csv|xlsx?|ppt|msg|heic|tiff?|html?|bmp|wps|xps)$">
#grant access only if files with specific extensions are uploaded
<FilesMatch "(?i)\.(bmp|csv|doc|docx|heic|html|jpeg|jpg|msg|odg|odt|pages|pdf|png|ppt|pptx|rtf|tiff|wpd|wps|xls|xlsx|xps)$">
Require all granted
</FilesMatch>

0 comments on commit 86f2fcc

Please sign in to comment.