diff --git a/src/AssetManager.php b/src/AssetManager.php index 3b2fe98..ec7e25d 100644 --- a/src/AssetManager.php +++ b/src/AssetManager.php @@ -38,15 +38,10 @@ protected function preparePaths(): void protected function hash($path): string { $dir = is_file($path) ? dirname($path) : $path; - $data = [ - // @phpstan-ignore-next-line - Craft::alias($dir), - $this->linkAssets, - ]; - - return sprintf( - '%x', - crc32(implode('|', $data)), - ); + + // @phpstan-ignore-next-line + return FileHelper::sanitizeFilename(Craft::alias($dir), [ + 'asciiOnly' => true, + ]); } }