[BUGFIX] TypoScriptParser does not validate absPath 07/29607/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Tue, 22 Apr 2014 15:20:29 +0000 (17:20 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 22 Apr 2014 19:43:41 +0000 (21:43 +0200)
commit0b772e11f8cf73c59f7e97f17b1e5f24f4d30fce
treefd4c30269997c4be5c1670c0da6513c2fc03a075
parent4f60fc76cfd36920757157101b6e6da168c43ecc
[BUGFIX] TypoScriptParser does not validate absPath

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().

Resolves: #58102
Releases: 6.2
Change-Id: I778ad6bfc9d4a6a08f36fdd6ae00ccb9a8d2c03e
Reviewed-on: https://review.typo3.org/29607
Reviewed-by: Johannes Kasberger
Tested-by: Johannes Kasberger
Reviewed-by: Stefan Neufeind
Tested-by: Wouter Wolters
Reviewed-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php