Skip to content

Commit 0608315

Browse files
author
Hayder Sharhan
committed
MAGETWO-45436: Eliminate multiple escaping in the inline translation popup
- Added escape to account for error caused by grid.
1 parent d50457d commit 0608315

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Translation/Model/Inline

1 file changed

+1
-1
lines changed

app/code/Magento/Translation/Model/Inline/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ private function _otherText()
589589
);
590590

591591
$spanHtml = $this->_getDataTranslateSpan(
592-
'[' . $translateProperties . ']',
592+
'[' . htmlspecialchars($translateProperties) . ']',
593593
$matches[1][0]
594594
);
595595
$this->_content = substr_replace($this->_content, $spanHtml, $matches[0][1], strlen($matches[0][0]));

0 commit comments

Comments
 (0)