|
19 | 19 | <?php $_dataHelper = $this->helper(\Magento\Directory\Helper\Data::class); ?>
|
20 | 20 | <?php $_addressHelper = $this->helper(\Magento\Customer\Helper\Address::class); ?>
|
21 | 21 |
|
22 |
| -<?php $_vatidValidationClass = $block->escapeHtmlAttr($_addressHelper->getAttributeValidationClass('vat_id')); ?> |
23 |
| -<?php $_cityValidationClass = $block->escapeHtmlAttr($_addressHelper->getAttributeValidationClass('city')); ?> |
| 22 | +<?php $_vatidValidationClass = $_addressHelper->getAttributeValidationClass('vat_id'); ?> |
| 23 | +<?php $_cityValidationClass = $_addressHelper->getAttributeValidationClass('city'); ?> |
24 | 24 | <?php $_postcodeValidationClass_value = $_addressHelper->getAttributeValidationClass('postcode'); ?>
|
25 |
| -<?php $_postcodeValidationClass = $block->escapeHtmlAttr($_postcodeValidationClass_value); ?> |
| 25 | +<?php $_postcodeValidationClass = $_postcodeValidationClass_value; ?> |
26 | 26 | <?php $_streetValidationClass = $_addressHelper->getAttributeValidationClass('street'); ?>
|
27 | 27 | <?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
28 |
| -<?php $_regionValidationClass = $block->escapeHtmlAttr($_addressHelper->getAttributeValidationClass('region')); ?> |
| 28 | +<?php $_regionValidationClass = $_addressHelper->getAttributeValidationClass('region'); ?> |
29 | 29 |
|
30 | 30 | <form class="form-address-edit"
|
31 | 31 | action="<?= $block->escapeUrl($block->getSaveUrl()) ?>"
|
|
93 | 93 | name="vat_id"
|
94 | 94 | value="<?= $block->escapeHtmlAttr($block->getAddress()->getVatId()) ?>"
|
95 | 95 | title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?>"
|
96 |
| - class="input-text <?= $_vatidValidationClass ?>" |
| 96 | + class="input-text <?= $block->escapeHtmlAttr($_vatidValidationClass) ?>" |
97 | 97 | id="vat_id">
|
98 | 98 | </div>
|
99 | 99 | </div>
|
|
105 | 105 | name="city"
|
106 | 106 | value="<?= $block->escapeHtmlAttr($block->getAddress()->getCity()) ?>"
|
107 | 107 | title="<?= $block->escapeHtmlAttr(__('City')) ?>"
|
108 |
| - class="input-text <?= $_cityValidationClass ?>" |
| 108 | + class="input-text <?= $block->escapeHtmlAttr($_cityValidationClass) ?>" |
109 | 109 | id="city">
|
110 | 110 | </div>
|
111 | 111 | </div>
|
|
125 | 125 | name="region"
|
126 | 126 | value="<?= $block->escapeHtmlAttr($block->getRegion()) ?>"
|
127 | 127 | title="<?= /* @noEscape */ $_region ?>"
|
128 |
| - class="input-text validate-not-number-first<?= $_regionValidationClass ?>" |
| 128 | + class="input-text validate-not-number-first |
| 129 | + <?= $block->escapeHtmlAttr($_regionValidationClass) ?>" |
129 | 130 | <?= !$_displayAll ? ' disabled="disabled"' : '' ?>/>
|
130 | 131 | </div>
|
131 | 132 | </div>
|
|
139 | 140 | value="<?= $block->escapeHtmlAttr($block->getAddress()->getPostcode()) ?>"
|
140 | 141 | title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?>"
|
141 | 142 | id="zip"
|
142 |
| - class="input-text validate-zip-international <?= $_postcodeValidationClass ?>"> |
| 143 | + class="input-text validate-zip-international |
| 144 | + <?= $block->escapeHtmlAttr($_postcodeValidationClass) ?>"> |
143 | 145 | <div role="alert" class="message warning" style="display:none">
|
144 | 146 | <span></span>
|
145 | 147 | </div>
|
|
0 commit comments