[BUGFIX] Always convert webroot to unix styled path 93/29893/2
authorNicole Cordes <typo3@cordes.co>
Tue, 6 May 2014 10:28:38 +0000 (12:28 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 6 May 2014 11:45:28 +0000 (13:45 +0200)
This patch adds the conversion from Windows styled to unix styled path.

Resolves: #58559
Releases: 6.2
Change-Id: I2b5b431fe60531ab1ad1c75bf9fd7749414c4df2
Reviewed-on: https://review.typo3.org/29893
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Build/UnitTestsBootstrap.php

index 6a974d7..074aeff 100644 (file)
@@ -67,6 +67,7 @@ if (getenv('TYPO3_PATH_WEB')) {
 } else {
        $webRoot = getcwd() . '/';
 }
+$webRoot = strtr($webRoot, '\\', '/');
 
 /**
  * Define basic TYPO3 constants