From 021bf484e0731251c504c4376dbf4ecfcfb68960 Mon Sep 17 00:00:00 2001 From: Joshua Westerheide <dev@jdoubleu.de> Date: Sat, 7 Oct 2017 20:45:53 +0200 Subject: [PATCH] [BUGFIX] Correct an always-true if statement in GeneralUtility::mkdir_deep Resolves: #82697 Releases: master, 8.7, 7.6 Change-Id: I64bf51d5efd0394f4d3269965820281cbaf2de90 Reviewed-on: https://review.typo3.org/54317 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> --- typo3/sysext/core/Classes/Utility/GeneralUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index b6683b404f9f..8f4fba054995 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -2054,7 +2054,7 @@ class GeneralUtility } // Ensure there is only one slash $fullPath = rtrim($directory, '/') . '/' . ltrim($deepDirectory, '/'); - if ($fullPath !== '' && !is_dir($fullPath)) { + if ($fullPath !== '/' && !is_dir($fullPath)) { $firstCreatedPath = static::createDirectoryPath($fullPath); if ($firstCreatedPath !== '') { static::fixPermissions($firstCreatedPath, true); -- GitLab