Skip to content

Commit

Permalink
IBX-6880: Skipped normalizing directories in the normalizePath method
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Nov 14, 2023
1 parent affa252 commit a115b36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eZ/Publish/Core/IO/FilePathNormalizer/Flysystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public function normalizePath(string $filePath, bool $doHash = true): string
? (preg_match(self::HASH_PATTERN, $fileName) ? '' : bin2hex(random_bytes(6)) . '-')
: '';

$filePath = $directory . \DIRECTORY_SEPARATOR . $hash . $fileName;
$filePath = $directory . \DIRECTORY_SEPARATOR . $hash;
$normalizedFileName = Util::normalizePath($fileName);

return Util::normalizePath($filePath);
return $filePath . $normalizedFileName;
}
}

0 comments on commit a115b36

Please sign in to comment.