Project

General

Profile

Bug #101035 » GeneralUtilityFixAllowedFileExtensionFilter.patch

Frank Berger, 2023-06-13 15:34

View differences:

Classes/Utility/GeneralUtility.php → Classes/Utility/GeneralUtility.php (date 1676644649547)
}
foreach ($allowedFileExtensionArray as $allowedFileExtension) {
$allowedFileExtension = '.'.$allowedFileExtension;
if (
($extensionList === ',,' || stripos($extensionList, ',' . substr($entry, strlen($allowedFileExtension) * -1, strlen($allowedFileExtension)) . ',') !== false)
($extensionList === ',,' || strtolower(substr($entry, strlen($allowedFileExtension) * -1)) === $allowedFileExtension)
&& ($excludePattern === '' || !preg_match('/^' . $excludePattern . '$/', $entry))
) {
if ($order !== 'mtime') {
    (1-1/1)