[BUGFIX] Make FileExtensionFilter case insensitive
[Packages/TYPO3.CMS.git] / 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;