From 90519608dd5d2842be35fe49da0dc4cb6c5908d7 Mon Sep 17 00:00:00 2001 From: Mathias Schreiber <mathias.schreiber@wmdb.de> Date: Mon, 2 Nov 2015 18:43:23 +0100 Subject: [PATCH] [BUGFIX] Allow creation of nested folders with same name Due to a faulty check it was disallowed to create a folder with the same name as the parent folder. Resolves: #71253 Releases: master Change-Id: Iecf1f17534958f10363538dc74612e9a52435a0d Reviewed-on: https://review.typo3.org/44485 Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> --- typo3/sysext/core/Classes/Resource/ResourceStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Resource/ResourceStorage.php b/typo3/sysext/core/Classes/Resource/ResourceStorage.php index f459d32f3cc2..f92765a611e1 100644 --- a/typo3/sysext/core/Classes/Resource/ResourceStorage.php +++ b/typo3/sysext/core/Classes/Resource/ResourceStorage.php @@ -2271,7 +2271,7 @@ class ResourceStorage implements ResourceStorageInterface if (!$this->checkFolderActionPermission('add', $parentFolder)) { throw new Exception\InsufficientFolderWritePermissionsException('You are not allowed to create directories in the folder "' . $parentFolder->getIdentifier() . '"', 1323059807); } - if ($this->driver->folderExists($folderName)) { + if ($this->driver->folderExistsInFolder($folderName, $parentFolder->getIdentifier())) { throw new Exception\ExistingTargetFolderException('Folder "' . $folderName . '" already exists.', 1423347324); } -- GitLab