Skip to content

Commit 32e5e5f

Browse files
author
Eugene Tulika
committed
Merge remote-tracking branch 'origin/MAGETWO-45292-XSS-Payload-in-websites-translation-table' into RC1-bugfixes
2 parents 63d0026 + 08813be commit 32e5e5f

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)