Skip to content

Commit 111f943

Browse files
committed
MAGETWO-45292: XSS Payload in website's translation table
1 parent f85e691 commit 111f943

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Translation/Model/ResourceModel/StringUtils.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public function saveTranslate($string, $translate, $locale = null, $storeId = nu
210210
{
211211
$connection = $this->getConnection();
212212
$table = $this->getMainTable();
213+
$translate = htmlspecialchars($translate, ENT_QUOTES);
213214

214215
if ($locale === null) {
215216
$locale = $this->_localeResolver->getLocale();

0 commit comments

Comments
 (0)