[BUGFIX] fixPermissions() on install tool test image
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Controller / EnvironmentController.php
index e34b3c6..e9e9df3 100644 (file)
@@ -212,8 +212,12 @@ class EnvironmentController extends AbstractController
         );
         $outputFile = PATH_site . 'typo3temp/assets/images/installTool-' . StringUtility::getUniqueId('createTrueTypeFontTestImage') . '.gif';
         imagegif($image, $outputFile);
+        $fileExists = file_exists($outputFile);
+        if ($fileExists) {
+            GeneralUtility::fixPermissions($outputFile);
+        }
         return $this->getImageTestResponse([
-            'fileExists' => file_exists($outputFile),
+            'fileExists' => $fileExists,
             'outputFile' => $outputFile,
             'referenceFile' => PATH_site . 'typo3/sysext/install/Resources/Public/Images/TestReference/Font.gif',
         ]);