We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b2a28 commit f7b9eb3Copy full SHA for f7b9eb3
lib/internal/Magento/Framework/App/View/Asset/Publisher.php
@@ -106,7 +106,7 @@ private function getFileHash($filePath)
106
if ($content === false) {
107
self::$fileHashes[$filePath] = false;
108
} else {
109
- self::$fileHashes[$filePath] = md5($content);
+ self::$fileHashes[$filePath] = hash('sha256', $content);
110
}
111
112
return self::$fileHashes[$filePath];
@@ -123,7 +123,7 @@ private function getTargetFileHash($dir, $targetPath)
123
{
124
try {
125
$content = $dir->readFile($targetPath);
126
- return md5($content);
+ return hash('sha256', $content);
127
} catch (\Exception $e) {
128
return false;
129
0 commit comments