Fixed bug #16900: [Cache] Filebackend fails on windows
authorSteffen Kamper <info@sk-typo3.de>
Wed, 5 Jan 2011 12:38:21 +0000 (12:38 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 5 Jan 2011 12:38:21 +0000 (12:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-3@9989 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php

index 3147481..669bfa6 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-05  Steffen Kamper  <steffen@typo3.org>
+
+       * Fixed bug #16900: [Cache] Filebackend fails on windows
+
 2010-12-30  Christian Kuhn  <lolli@schwarzbu.ch>
 
        * Fixed bug #15034: Login to backend fails with IPv6 Address as HTTP_HOST (Thanks to Roland Schenke)
index 2f4af7c..e5a6e65 100644 (file)
@@ -137,7 +137,9 @@ class t3lib_cache_backend_FileBackend extends t3lib_cache_backend_AbstractBacken
                        }
 
                        if (TYPO3_OS === 'WIN') {
-                               $documentRoot = '';
+                               if (substr($cacheDirectory, 0,  strlen($documentRoot)) === $documentRoot) {
+                                       $documentRoot = '';
+                               }
                        }
                }