Skip to content

Commit f7b9eb3

Browse files
committed
AC-10573: Static deploy doesn't update files
Updated hash instead of md5
1 parent e6b2a28 commit f7b9eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/App/View/Asset/Publisher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function getFileHash($filePath)
106106
if ($content === false) {
107107
self::$fileHashes[$filePath] = false;
108108
} else {
109-
self::$fileHashes[$filePath] = md5($content);
109+
self::$fileHashes[$filePath] = hash('sha256', $content);
110110
}
111111
}
112112
return self::$fileHashes[$filePath];
@@ -123,7 +123,7 @@ private function getTargetFileHash($dir, $targetPath)
123123
{
124124
try {
125125
$content = $dir->readFile($targetPath);
126-
return md5($content);
126+
return hash('sha256', $content);
127127
} catch (\Exception $e) {
128128
return false;
129129
}

0 commit comments

Comments
 (0)