[BUGFIX] Always use forward slashes in Upgrade Analysis
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Controller / Action / Tool / UpgradeAnalysis.php
index a409027..9612785 100644 (file)
@@ -38,9 +38,20 @@ class UpgradeAnalysis extends AbstractAction
     {
         $documentationFileService = new DocumentationFile();
         $documentationFiles = $documentationFileService->findDocumentationFiles(
-            PATH_site . ExtensionManagementUtility::siteRelPath('core') . 'Documentation/Changelog'
+            strtr(realpath(PATH_site . ExtensionManagementUtility::siteRelPath('core') . 'Documentation/Changelog'), '\\', '/')
         );
 
+        /** @var $formProtection \TYPO3\CMS\Core\FormProtection\InstallToolFormProtection */
+        $formProtection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get(
+            \TYPO3\CMS\Core\FormProtection\InstallToolFormProtection::class
+        );
+        $saveIgnoredItemsToken = $formProtection->generateToken('installTool', 'saveIgnoredItems');
+        $removeIgnoredItemsToken = $formProtection->generateToken('installTool', 'removeIgnoredItems');
+        $this->view->assignMultiple([
+            'saveIgnoredItemsToken' => $saveIgnoredItemsToken,
+            'removeIgnoredItemsToken' => $removeIgnoredItemsToken,
+        ]);
+
         $this->view->assign('files', $documentationFiles);
         return $this->view->render();
     }