Skip to content

Commit

Permalink
don't hash
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Dec 14, 2023
1 parent cb9ba2a commit 59ce597
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/AssetManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}
}

0 comments on commit 59ce597

Please sign in to comment.