Skip to content

Commit bd79e6d

Browse files
committed
MAGETWO-35079: Price of Simple Product isn't recalculated after selecting options on product page
- Cover attribute output in {{escapeHtml}} call
1 parent 437a2c2 commit bd79e6d

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/view/options/type

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/view/options/type/text.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
3434
id="options_<?php echo $_option->getId() ?>_text"
3535
class="input-text product-custom-option"
3636
<?php if (!empty($_textValidate)) {?>
37-
data-validate='<?php echo json_encode($_textValidate);?>'
37+
data-validate="<?php echo $block->escapeHtml(json_encode($_textValidate));?>"
3838
<?php } ?>
3939
name="options[<?php echo $_option->getId() ?>]"
4040
value="<?php echo $block->escapeHtml($block->getDefaultValue()) ?>"/>
@@ -50,7 +50,7 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
5050
<textarea id="options_<?php echo $_option->getId() ?>_text"
5151
class="product-custom-option"
5252
<?php if (!empty($_textAreaValidate)) {?>
53-
data-validate='<?php echo json_encode($_textAreaValidate);?>'
53+
data-validate="<?php echo $block->escapeHtml(json_encode($_textAreaValidate));?>"
5454
<?php } ?>
5555
name="options[<?php echo $_option->getId() ?>]"
5656
rows="5"

0 commit comments

Comments
 (0)