[BUGFIX] Do not use empty needle in strpos in SimpleFileBackend
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Cache / Backend / SimpleFileBackend.php
index b107b47..7bdfd62 100644 (file)
@@ -164,7 +164,7 @@ class SimpleFileBackend extends AbstractBackend implements PhpCapableBackendInte
                 $documentRoot = '';
             }
             if (Environment::isWindows()) {
-                if (strpos($cacheDirectory, $documentRoot) === 0) {
+                if (!empty($documentRoot) && strpos($cacheDirectory, $documentRoot) === 0) {
                     $documentRoot = '';
                 }
             }