[BUGFIX] Allow lower case for drive letters on Windows in CLI scripts 20/33320/2
authorAlexander Bohndorf <bohndorf@web.de>
Mon, 22 Sep 2014 07:46:35 +0000 (09:46 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 15 Oct 2014 10:26:18 +0000 (12:26 +0200)
Resolves: #61749
Releases: master, 6.2, 6.1
Change-Id: I88a3489311e8f94669876ddbe59589f68cd5708e
Reviewed-on: http://review.typo3.org/33320
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php

index 563621f..f96d662 100644 (file)
@@ -381,7 +381,7 @@ class SystemEnvironmentBuilder {
                // Find out if path is relative or not
                $isRelativePath = FALSE;
                if (TYPO3_OS === 'WIN') {
-                       if (!preg_match('/^([A-Z]:)?\\\\/', $scriptPath)) {
+                       if (!preg_match('/^([a-zA-Z]:)?\\\\/', $scriptPath)) {
                                $isRelativePath = TRUE;
                        }
                } else {