Skip to content

Commit 3a3b0b7

Browse files
authored
fix: [MINT-4875] escape output to prevent XSS in templates (#223)
1 parent d14a1ef commit 3a3b0b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

view/adminhtml/templates/system/config/finish-integration-steps.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $showTimeline = $status !== 4 && $status !== 3;
2727
<p>The <strong><?= $escaper->escapeHtml($block->getCurrentIntegrationName()) ?></strong> integration is not yet enabled. Please follow the steps detailed on the <a href="<?= $escaper->escapeUrl($block->getDefaultScopeUrl()) ?>">Extend Settings</a> page to complete
2828
your setup and integration this store with Extend.</p>
2929
<button class="action-primary" name="finish_integration" type="button" onclick="document.location.href='<?= $escaper->escapeJs($block->getDefaultScopeUrl()) ?>';">
30-
<span><?= __('Finish Integration') ?></span>
30+
<span><?= $escaper->escapeHtml(__('Finish Integration')) ?></span>
3131
</button>
3232
</div>
3333
<?php endif; ?>

view/frontend/templates/checkout/sp-quote-config.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $shouldRender = $viewModel->isExtendShippingProtectionEnabled();
2727
"environment": "<?= $escaper->escapeJs($environment) ?>",
2828
"storeId": "<?= $escaper->escapeJs($storeId) ?>",
2929
"currencyCode": "<?= $escaper->escapeJs($currencyCode) ?>",
30-
"isCurrencySupported": <?= json_encode($isCurrencySupported) ?>
30+
"isCurrencySupported": <?= /* @noEscape */ json_encode($isCurrencySupported) ?>
3131
}
3232
]
3333
}

0 commit comments

Comments
 (0)