[TYPO3-core] FYI48: #16900: [Cache] Filebackend fails on windows

Steffen Kamper info at sk-typo3.de
Mon Jan 3 19:38:22 CET 2011


Hi,

this is SVN patch request.

Type: bugfix

Branches: trunk, 4.4, 4.3

BT reference: http://bugs.typo3.org/view.php?id=16900


The filebackend fails on windows if 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 = '';
     }
}

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16900.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110103/306104a4/attachment.asc>


More information about the TYPO3-team-core mailing list