Skip to content

Commit 08813be

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'troll/MAGETWO-45292' into MAGETWO-45292-XSS-Payload-in-websites-translation-table
2 parents 9b314ba + 111f943 commit 08813be

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)