From f6fe2665f5e5413e93b94bf7b8daffd80fc099c5 Mon Sep 17 00:00:00 2001 From: Justus Moroni <justus.moroni@icloud.com> Date: Wed, 18 Oct 2023 10:29:42 +0200 Subject: [PATCH] [BUGFIX] Allow to create folders with name "0" Resolves: #102192 Releases: main, 12.4, 11.5 Change-Id: I0cc48e27d32b6d6164d9d580121968610a9333b9 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81655 Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: core-ci <typo3@b13.com> --- typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php b/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php index a5c22e7da5ab..953fc369e198 100644 --- a/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php +++ b/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php @@ -230,7 +230,7 @@ class ExtendedFileUtility extends BasicFileUtility // Check if there were new folder names expected, but non given if ($this->fileCmdMap['newfolder'] ?? false) { foreach ($this->fileCmdMap['newfolder'] as $key => $cmdArr) { - if (empty($cmdArr['data'])) { + if ((string)($cmdArr['data'] ?? '') === '') { unset($this->fileCmdMap['newfolder'][$key]); } } -- GitLab