Actions
Bug #58102
closedTypoScriptParser does not validate absPath
Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2014-04-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
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/">
Actions