Issue Bug Closed

#58102TypoScriptParser does not validate absPath

Markus Klein 04/22/14, 17:20 updated 10/02/18, 11:58

Description

GeneralUtility::getFileAbsFileName() returns a blank string for
invalid paths.
TypoScriptParser::includeDirectory() does not check the return value,
but passes it on to TypoScriptParser::getAllFilesAndFoldersInPath().
This causes the method to enumerate all entries of /.

Fix this by properly checking the return value of getFileAbsFileName().

*How to reproduce:*
Copy this TSconfig into your root page:
@<include_typoscript: source="DIR:EXT:missingext/Configuration/TSconfig/">@</include_typoscript:>

Reviews 1