Project

General

Profile

Bug #55614 » patch.diff

Ralf Zimmermann, 2014-02-03 13:47

View differences:

a/typo3/sysext/core/Classes/Resource/Filter/FileExtensionFilter.php → b/typo3/sysext/core/Classes/Resource/Filter/FileExtensionFilter.php
*/
protected function isAllowed($fileName) {
$result = TRUE;
$fileExt = pathinfo($fileName, PATHINFO_EXTENSION);
$fileExt = strtolower(pathinfo($fileName, PATHINFO_EXTENSION));
// Check allowed file extensions
if ($this->allowedFileExtensions !== NULL && count($this->allowedFileExtensions) > 0 && !in_array($fileExt, $this->allowedFileExtensions)) {
$result = FALSE;
    (1-1/1)