[BUGFIX] Add fileSuffix option to GeneralUtility::tempnam()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Driver / AbstractDriver.php
index 173cec4..966b26a 100644 (file)
@@ -139,7 +139,7 @@ abstract class AbstractDriver implements DriverInterface {
         * @return string
         */
        protected function getTemporaryPathForFile($fileIdentifier) {
-               return \TYPO3\CMS\Core\Utility\GeneralUtility::tempnam('fal-tempfile-') . '.' . PathUtility::basename($fileIdentifier);
+               return \TYPO3\CMS\Core\Utility\GeneralUtility::tempnam('fal-tempfile-', '.' . PathUtility::pathinfo($fileIdentifier, PATHINFO_EXTENSION));
        }
 
        /**