Skip to content

Commit 4943a53

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-99007' into borg-qwerty-2.1
2 parents b771a6b + 1429d5a commit 4943a53

File tree

1 file changed

+9
-8
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66

77
// @codingStandardsIgnoreFile
88

9+
$escapeHelper = $this->helper(\Magento\Framework\EscapeHelper::class);
910
?>
1011
<div class="page-create-order">
1112
<script>
1213
require(["Magento_Sales/order/create/form"], function(){
13-
order.setCurrencySymbol('<?php /* @escapeNotVerified */ echo $block->getCurrencySymbol($block->getCurrentCurrencyCode()) ?>')
14+
order.setCurrencySymbol('<?php echo $escapeHelper->escapeJs($block->getCurrencySymbol($block->getCurrentCurrencyCode())) ?>')
1415
});
1516
</script>
1617
<div class="order-details<?php if ($block->getCustomerId()): ?> order-details-existing-customer<?php endif; ?>">
@@ -35,7 +36,7 @@
3536

3637
<section id="order-addresses" class="admin__page-section order-addresses">
3738
<div class="admin__page-section-title">
38-
<span class="title"><?php /* @escapeNotVerified */ echo __('Address Information') ?></span>
39+
<span class="title"><?php echo $block->escapeHtml(__('Address Information')) ?></span>
3940
</div>
4041
<div class="admin__page-section-content">
4142
<div id="order-billing_address" class="admin__page-section-item order-billing-address">
@@ -49,7 +50,7 @@
4950

5051
<section id="order-methods" class="admin__page-section order-methods">
5152
<div class="admin__page-section-title">
52-
<span class="title"><?php /* @escapeNotVerified */ echo __('Payment &amp; Shipping Information') ?></span>
53+
<span class="title"><?php echo $block->escapeHtml(__('Payment &amp; Shipping Information')) ?></span>
5354
</div>
5455
<div class="admin__page-section-content">
5556
<div id="order-billing_method" class="admin__page-section-item order-billing-method">
@@ -71,11 +72,11 @@
7172

7273
<section class="admin__page-section order-summary">
7374
<div class="admin__page-section-title">
74-
<span class="title"><?php /* @escapeNotVerified */ echo __('Order Total') ?></span>
75+
<span class="title"><?php echo $block->escapeHtml(__('Order Total')) ?></span>
7576
</div>
7677
<div class="admin__page-section-content">
7778
<fieldset class="admin__fieldset order-history" id="order-comment">
78-
<legend class="admin__legend"><span><?php /* @escapeNotVerified */ echo __('Order History') ?></span></legend>
79+
<legend class="admin__legend"><span><?php echo $block->escapeHtml(__('Order History')) ?></span></legend>
7980
<br>
8081
<?php echo $block->getChildHtml('comment') ?>
8182
</fieldset>
@@ -90,15 +91,15 @@
9091
<div class="order-sidebar">
9192
<div class="store-switcher order-currency">
9293
<label class="admin__field-label" for="currency_switcher">
93-
<?php /* @escapeNotVerified */ echo __('Order Currency:') ?>
94+
<?php echo $block->escapeHtml(__('Order Currency:')) ?>
9495
</label>
9596
<select id="currency_switcher"
9697
class="admin__control-select"
9798
name="order[currency]"
9899
onchange="order.setCurrencyId(this.value); order.setCurrencySymbol(this.options[this.selectedIndex].getAttribute('symbol'));">
99100
<?php foreach ($block->getAvailableCurrencies() as $_code): ?>
100-
<option value="<?php /* @escapeNotVerified */ echo $_code ?>"<?php if ($_code == $block->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?> symbol="<?php /* @escapeNotVerified */ echo $block->getCurrencySymbol($_code) ?>">
101-
<?php /* @escapeNotVerified */ echo $block->getCurrencyName($_code) ?>
101+
<option value="<?php echo $escapeHelper->escapeHtmlAttr($_code) ?>"<?php if ($_code == $block->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?> symbol="<?php echo $escapeHelper->escapeHtmlAttr($block->getCurrencySymbol($_code)) ?>">
102+
<?php echo $block->escapeHtml($block->getCurrencyName($_code)) ?>
102103
</option>
103104
<?php endforeach; ?>
104105
</select>

0 commit comments

Comments
 (0)