Resolves: #82697
Releases: master, 8.7, 7.6
Change-Id: I64bf51d5efd0394f4d3269965820281cbaf2de90
Reviewed-on: https://review.typo3.org/54330
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
}
// 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);