Bug #94714 » svgfilessanitization.patch
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
|