Skip to content

Commit 0de669a

Browse files
committed
MC-16618: Eliminate @escapeNotVerified in Sales-related Modules
- Resolve further escape issues in admin
1 parent 2944583 commit 0de669a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/form/account.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/** @var $block \Magento\Sales\Block\Adminhtml\Order\Create\Form\Account */
88
?>
99

10-
<div class="admin__page-section-title <?= /* @noEscape */ $block->getHeaderCssClass() ?>">
10+
<div class="admin__page-section-title <?= $block->escapeHtmlAttr($block->getHeaderCssClass()) ?>">
1111
<span class="title"><?= $block->escapeHtml($block->getHeaderText()) ?></span>
1212
<div class="actions"></div>
1313
</div>

app/code/Magento/Sales/view/adminhtml/templates/order/create/form/address.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ else :
4646
endif; ?>
4747

4848
<fieldset class="admin__fieldset">
49-
<legend class="admin__legend <?= /* @noEscape */ $block->getHeaderCssClass() ?>">
49+
<legend class="admin__legend <?= $block->escapeHtmlAttr($block->getHeaderCssClass()) ?>">
5050
<span><?= $block->escapeHtml($block->getHeaderText()) ?></span>
5151
</legend><br>
5252

app/code/Magento/Sales/view/adminhtml/templates/order/create/totals/tax.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $taxAmount = $block->getTotal()->getValue();
1515
global $taxIter;
1616
$taxIter++;
1717
?>
18-
<?php $class = "{$block->getTotal()->getCode()} " . ($this->helper(\Magento\Tax\Helper\Data::class)->displayFullSummary() ? 'summary-total' : ''); ?>
18+
<?php $class = $block->escapeHtmlAttr("{$block->getTotal()->getCode()} " . ($this->helper(\Magento\Tax\Helper\Data::class)->displayFullSummary() ? 'summary-total' : '')); ?>
1919
<tr<?php if ($this->helper(\Magento\Tax\Helper\Data::class)->displayFullSummary()) : ?>
2020
onclick="expandDetails(this, '.summary-details-<?= $block->escapeJs($taxIter) ?>')"
2121
<?php endif; ?>

0 commit comments

Comments
 (0)