File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Catalog/view/frontend/templates/product
Checkout/view/frontend/templates/cart/item Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
77
77
<div class="actions-primary"<?= strpos ($ pos , $ viewMode . '-primary ' ) ? $ position : '' ?> >
78
78
<?php if ($ _product ->isSaleable ()): ?>
79
79
<?php $ postParams = $ block ->getAddToCartPostParams ($ _product ); ?>
80
- <form data-role="tocart-form" data-product-sku="<?= /* @NoEscape */ $ _product ->getSku () ?> " action="<?= /* @NoEscape */ $ postParams ['action ' ] ?> " method="post">
80
+ <form data-role="tocart-form" data-product-sku="<?= $ block -> escapeHtml ( $ _product ->getSku () ) ?> " action="<?= /* @NoEscape */ $ postParams ['action ' ] ?> " method="post">
81
81
<input type="hidden" name="product" value="<?= /* @escapeNotVerified */ $ postParams ['data ' ]['product ' ] ?> ">
82
82
<input type="hidden" name="<?= /* @escapeNotVerified */ Action::PARAM_NAME_URL_ENCODED ?> " value="<?= /* @escapeNotVerified */ $ postParams ['data ' ][Action::PARAM_NAME_URL_ENCODED ] ?> ">
83
83
<?= $ block ->getBlockHtml ('formkey ' ) ?>
Original file line number Diff line number Diff line change 16
16
<?php $ _product = $ block ->getProduct (); ?>
17
17
18
18
<div class="product-add-form">
19
- <form data-product-sku="<?= /* @NoEscape */ $ _product ->getSku () ?> "
19
+ <form data-product-sku="<?= $ block -> escapeHtml ( $ _product ->getSku () ) ?> "
20
20
action="<?= /* @NoEscape */ $ block ->getSubmitUrl ($ _product ) ?> " method="post"
21
21
id="product_addtocart_form"<?php if ($ _product ->getOptions ()): ?> enctype="multipart/form-data"<?php endif ; ?> >
22
22
<input type="hidden" name="product" value="<?= /* @escapeNotVerified */ $ _product ->getId () ?> " />
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
90
90
<div class="control qty">
91
91
<input id="cart-<?= /* @escapeNotVerified */ $ _item ->getId () ?> -qty"
92
92
name="cart[<?= /* @escapeNotVerified */ $ _item ->getId () ?> ][qty]"
93
- data-cart-item-id="<?= /* @escapeNotVerified */ $ _item ->getSku () ?> "
93
+ data-cart-item-id="<?= $ block -> escapeHtml ( $ _item ->getSku () ) ?> "
94
94
value="<?= /* @escapeNotVerified */ $ block ->getQty () ?> "
95
95
type="number"
96
96
size="4"
You can’t perform that action at this time.
0 commit comments