[BUGFIX] Cache FileBackend does not respect fileCreateMask
authorSteffen Gebert <steffen.gebert@typo3.org>
Tue, 19 Jul 2011 20:00:57 +0000 (22:00 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 20 Jul 2011 11:35:01 +0000 (13:35 +0200)
Change-Id: Ia786457dbc4c850c67f7293be38b2591786f1553
Resolves: #28323
Releases: 4.6
Reviewed-on: http://review.typo3.org/3422
Reviewed-by: Fabrizio Branca
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php

index 3d40212..578136e 100644 (file)
@@ -274,6 +274,7 @@ class t3lib_cache_backend_FileBackend extends t3lib_cache_backend_AbstractBacken
                $expiryTime = ($lifetime === NULL) ? 0 : ($GLOBALS['EXEC_TIME'] + $lifetime);
                $metaData = str_pad($expiryTime, self::EXPIRYTIME_LENGTH) . implode(' ', $tags) . str_pad(strlen($data), self::DATASIZE_DIGITS);
                $result = file_put_contents($temporaryCacheEntryPathAndFilename, $data . $metaData);
+               t3lib_div::fixPermissions($temporaryCacheEntryPathAndFilename);
 
                if ($result === FALSE) {
                        throw new t3lib_cache_exception(