Skip to content

Commit

Permalink
Merge branch '1.3' of ezsystems/ezplatform-kernel into 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Dec 22, 2023
2 parents 8ee2fb7 + 4abba92 commit 843d709
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/IO/FilePathNormalizer/Flysystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ 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 = $this->pathNormalizer->normalizePath($fileName);

return $this->pathNormalizer->normalizePath($filePath);
return $filePath . $normalizedFileName;
}
}

Expand Down

0 comments on commit 843d709

Please sign in to comment.