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.
2 parents 6c96cb6 + beb1ca3 commit 3b5f32bCopy full SHA for 3b5f32b
app/code/Magento/Catalog/view/frontend/templates/product/image.phtml
@@ -6,7 +6,7 @@
6
?>
7
<?php /** @var $block \Magento\Catalog\Block\Product\Image */ ?>
8
9
-<img class="photo image"
+<img class="photo image <?= $block->escapeHtmlAttr($block->getClass()) ?>"
10
<?= $block->escapeHtml($block->getCustomAttributes()) ?>
11
src="<?= $block->escapeUrl($block->getImageUrl()) ?>"
12
width="<?= $block->escapeHtmlAttr($block->getWidth()) ?>"
0 commit comments