Skip to content

Commit

Permalink
Merged branch '4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Dec 22, 2023
2 parents ee3aaf7 + 843d709 commit 182651e
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 182651e

Please sign in to comment.