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.
2 parents aab5964 + 9918dd5 commit 24144f3Copy full SHA for 24144f3
app/code/Magento/Translation/view/base/templates/translate.phtml
@@ -28,7 +28,7 @@
28
29
<?php $version = $block->getTranslationFileVersion(); ?>
30
31
- if (versionObj.version !== '<?= /* @noEscape */ $version ?>') {
+ if (versionObj.version !== '<?php $block->escapeJsQuote($version) ?>') {
32
dependencies.push(
33
'text!<?= /* @noEscape */ Magento\Translation\Model\Js\Config::DICTIONARY_FILE_NAME ?>'
34
);
@@ -44,7 +44,7 @@
44
$.localStorage.set(
45
'mage-translation-file-version',
46
{
47
- version: '<?= /* @noEscape */ $version ?>'
+ version: '<?php $block->escapeJsQuote($version) ?>'
48
}
49
50
} else {
0 commit comments