We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9036c commit 0f994d4Copy full SHA for 0f994d4
1 file changed
view/frontend/templates/script/component/customer/logout.phtml
@@ -27,7 +27,7 @@ if ($timeout < 1) {
27
'You have signed out and will go to our homepage in %1 seconds.'
28
)
29
) ?>',
30
- redirectUrl: '<?= $block->getUrl() ?>',
+ redirectUrl: '<?= $escaper->escapeUrl($block->getUrl()) ?>',
31
timeout: <?= (int)$timeout ?>,
32
init() {
33
this.prefetch();
@@ -58,6 +58,6 @@ if ($timeout < 1) {
58
59
<script type="speculationrules">
60
{
61
- "prerender": [{ "source": "list", "urls": ["<?= $block->getUrl() ?>"] }]
+ "prerender": [{ "source": "list", "urls": ["<?= $escaper->escapeUrl($block->getUrl()) ?>"] }]
62
}
63
</script>
0 commit comments