[BUGFIX] Cache FileBackend does not respect fileCreateMask
authorSteffen Gebert <steffen.gebert@typo3.org>
Tue, 19 Jul 2011 20:00:57 +0000 (22:00 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 1 Aug 2011 12:11:12 +0000 (14:11 +0200)
Change-Id: I8aa31c1c806d5424f2da9b3b3d37593da59a062a
Resolves: #28323
Releases: 4.5,4.6
Reviewed-on: http://review.typo3.org/3436
Reviewed-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php

index f96ece6..46dce31 100644 (file)
@@ -246,6 +246,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(