Project

General

Profile

Bug #94714 » svgfilessanitization.patch

Pierrick Caillon, 2021-08-04 17:20

View differences:

html/typo3/sysext/install/Classes/Updates/SvgFilesSanitization.php (date 1628097558484)
{
$filter = GeneralUtility::makeInstance(FileExtensionFilter::class);
$filter->setAllowedFileExtensions(['svg', 'svgz']);
return $storage
$files = $storage
->setFileAndFolderNameFilters([[$filter, 'filterFileList']])
->getFilesInFolder(
$storage->getRootLevelFolder(),
......
true,
true
);
$storage->resetFileAndFolderNameFiltersToDefault();
return $files;
}
protected function processSvgFiles(): bool
(1-1/3)