[BUGFIX] Add check for valid directory name for TCA select fileFolder 12/50712/3
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 17 Nov 2016 16:29:43 +0000 (17:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 18 Nov 2016 21:00:06 +0000 (22:00 +0100)
commitde9fd096f4662cafbc229c4a4b841c863391604d
tree4a7803683320a9cfaf06e42865da44b38c69d238
parent988f810bfae69d27258f2fdacce8225ae74ccb3c
[BUGFIX] Add check for valid directory name for TCA select fileFolder

If an invalid extension name is passed to a 'EXT:...' path, the
GeneralUtility::getFileAbsFileName function returns an empty string.
This results in a scan of '\' in the first place, and the resulting
error is not helpful for finding the source of the missing icons
in the TCA select box.
A check for a valid directory name and an exception in case of
failure will help the situation.

Resolves: #78737
Releases: master, 7.6
Change-Id: I9d5159eac9b511e879144789eecb40eafcc0288c
Reviewed-on: https://review.typo3.org/50712
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php