[BUGFIX] Install tool extension scanner .rst file core version 50/54450/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 20 Oct 2017 09:58:13 +0000 (11:58 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 20 Oct 2017 10:41:30 +0000 (12:41 +0200)
The core version indicator in the extension scanner of the install
tool on reST files is broken on windows OS since path is split by
/ instead of \. Use DIRECTORY_SEPARATOR to fix this.

Change-Id: I57928468c1a4cae2a439bd55b00874d13f3569dc
Resolves: #82830
Releases: master
Reviewed-on: https://review.typo3.org/54450
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/install/Classes/Controller/UpgradeController.php

index 3a31b9a..3fe445f 100644 (file)
@@ -619,7 +619,7 @@ class UpgradeController extends AbstractController
                     break;
                 }
                 $parsedRestFile = array_pop($documentationFile->getListEntry(strtr(realpath($restFileLocation), '\\', '/')));
-                $version = GeneralUtility::trimExplode('/', $restFileLocation);
+                $version = GeneralUtility::trimExplode(DIRECTORY_SEPARATOR, $restFileLocation);
                 array_pop($version);
                 // something like "8.2" .. "8.7" .. "master"
                 $parsedRestFile['version'] = array_pop($version);