[BUGFIX] Make FileExtensionFilter case insensitive 59/27359/4
authortritum_rz <ralf.zimmermann@tritum.de>
Wed, 5 Feb 2014 14:43:45 +0000 (15:43 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 5 Feb 2014 18:40:56 +0000 (19:40 +0100)
Resolves: #55359
Resolves: #55614
Releases: 6.2
Change-Id: I8aceb208ba2f28967f08e9ac458d9a9da3de507b
Reviewed-on: https://review.typo3.org/27359
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Resource/Filter/FileExtensionFilter.php

index 8a5ba35..15bd0d6 100644 (file)
@@ -119,7 +119,7 @@ class FileExtensionFilter {
         */
        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;