Skip to content

Commit

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

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

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

0 comments on commit d241db9

Please sign in to comment.