Actions
Bug #24460
closed[Cache] Filebackend fails on windows
Start date:
2011-01-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The filebackend fails on windows it setCacheDirectory is used with relative path.
This is due a missing check, which is done for other OS.
Check for non-windows:
if ($cacheDirectory[0] == '/') { // Absolute path to cache directory. $documentRoot = '/'; }
Error for windows:
if (TYPO3_OS === 'WIN') { $documentRoot = ''; }
should be:
if (TYPO3_OS === 'WIN') { if (substr($cacheDirectory, 0, strlen($documentRoot)) === $documentRoot) { $documentRoot = ''; } }
(issue imported from #M16900)
Files
Updated by Steffen Kamper almost 14 years ago
committed to svn
4_3 rev 9989
4_4 rev 9990
trunk rev 9991
Actions