Skip to content

Commit

Permalink
fix md5 phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
dangscaleflex committed Aug 23, 2023
1 parent fddca7a commit 101303d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Override/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ private function getViewImages(array $themes): array
return $viewImages;
}



/**
* Get unique image index.
*
Expand All @@ -291,7 +293,7 @@ private function getUniqueImageIndex(array $imageData): string
ksort($imageData);
unset($imageData['type']);
// phpcs:disable Magento2.Security.InsecureFunction
return md5(json_encode($imageData));
return hash('sha256', json_encode($imageData));
}

/**
Expand Down

0 comments on commit 101303d

Please sign in to comment.