11878-Invalid extensions file repo

This commit is contained in:
Pablo Aragon 2023-08-25 13:22:39 +02:00
parent f221b83a9e
commit 0d514651b0
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ function files_repo_add_file($file_input_name='upfile', $description='', $groups
// Invalid extensions.
$extension = pathinfo($filename, PATHINFO_EXTENSION);
$invalid_extensions = '/^(php|php1|php2|php3|php4|php5|php7|php8|phar)$/i';
$invalid_extensions = '/^(php|php1|php2|php3|php4|php5|php7|php8|phar|phptml|phps)$/i';
if (preg_match($invalid_extensions, $extension) === 0) {
// Replace conflictive characters