Actions
Bug #54750
closedWrong use of tempnam() in LocalPrieviewHelper
Status:
Closed
Priority:
Must have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-01-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
In TYPO3\CMS\Core\Resource\Processing\LocalPrieviewHelper Utility\GeneralUtility::tempnam() is used to create a temp file.
$temporaryFileName = Utility\GeneralUtility::tempnam('preview_') . '.' . $task->getTargetFileExtension();
The problem here is that tempnam() creates a file int typo3temp but that one isn't used because the file extension is added to the $temporyFileName.
This results in a empty file in typo3temp every time an processed file is created.
Actions