Skip to content

Commit b4b16ff

Browse files
author
Gabriel Galvao da Gama
committed
Added escape for block argument
1 parent 03b3ef5 commit b4b16ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Cms/view/adminhtml/templates/url_filter_applier.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
*/
66

77
/** @var $block \Magento\Backend\Block\Template */
8+
/** @var \Magento\Framework\Escaper $escaper */
89
?>
910
<script type="text/x-magento-init">
1011
{
1112
"*": {
1213
"Magento_Ui/js/grid/url-filter-applier": {
13-
"listingNamespace": "<?= $block->getListingNamespace() ?>"
14+
"listingNamespace": "<?= $escaper->escapeJs($block->getListingNamespace()) ?>"
1415
}
1516
}
1617
}

0 commit comments

Comments
 (0)