Issue Bug Closed

#21023$TYPO3_CONF_VARS['BE']['fileDenyPattern'] causes problems

Sigfried Arnold 09/10/09, 00:12 updated 05/20/10, 16:33

Description

The default regular expression filters out filenames wich just contains .php:

\.php[3-6]?(\..*)?$|^\.htaccess$

for example – try to add a file named foobar.php.gz – it wil fail with the message “1: Fileextension ‘gz’ not allowed. (tt_content:8:media)”

The Problem is it checks for “.php” + “optional 3-6” + (“.” + “any sequence”) at the end of string

obviously it should only check for “.php” + “optional 3-6” at the end of string plus phtml and phpsh

also adding of .htpasswd should be denied – i guess there is no use for anyway

The pattern should be changed to \.(php([3-6]|sh)?|phtml)$|^\.ht(access|passwd)$

(issue imported from #M11914)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.