[BUGFIX] Ignore invalid files in LocalDriver::getDirectoryItemList 45/51845/3
authorNicole Cordes <typo3@cordes.co>
Mon, 13 Feb 2017 13:22:39 +0000 (14:22 +0100)
committerNicole Cordes <typo3@cordes.co>
Sat, 25 Feb 2017 10:57:36 +0000 (11:57 +0100)
commit79e692f19db68da61247dba492bd6639b17c4c85
tree9b2853f986b633d4dc6411d191e21641133fb0de
parent668f82a5daefcc44767ebad2a45ad9fff199cccb
[BUGFIX] Ignore invalid files in LocalDriver::getDirectoryItemList

Due to some security changes in GeneralUtility::validPathStr some
wrongly encoded files are now returned as invalid. This breaks e.g. the
file list.
This patch adds a try/catch block to ignore invalid files and return the
valid ones.

Resolves: #79776
Releases: master, 7.6, 6.2
Change-Id: Iaa3697b04c123bba61a426fdf39ee3959f68b705
Reviewed-on: https://review.typo3.org/51845
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php