From ba4c78922cfdaf7f08d36c5fcbefe8ef0946a8f8 Mon Sep 17 00:00:00 2001 From: Oliver Bartsch <bo@cedev.de> Date: Wed, 17 Nov 2021 12:48:44 +0100 Subject: [PATCH] [BUGFIX] Properly explode file collection uids as int The FilesProcessor previously exploded the comma separated list of file collection uids with trimExplode. However, the underlying FileCollector method expects the uids to be of type int. Therefore, the data processor now uses GU::intExplode(), like already done in FileContentObject, instead. Resolves: #93193 Releases: master Change-Id: Ib0923b1484993793e1dd50be395fac78aa61cda7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72204 Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Jochen <rothjochen@gmail.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Jochen <rothjochen@gmail.com> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php b/typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php index a611da84f9f5..11265d179b66 100644 --- a/typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php +++ b/typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php @@ -92,7 +92,7 @@ class FilesProcessor implements DataProcessorInterface // collections $collections = $cObj->stdWrapValue('collections', $processorConfiguration ?? []); if (!empty($collections)) { - $collections = GeneralUtility::trimExplode(',', (string)$collections, true); + $collections = GeneralUtility::intExplode(',', (string)$collections, true); $fileCollector->addFilesFromFileCollections($collections); } -- GitLab