Skip to content

Commit ca13647

Browse files
committed
ACP2E-1602: [Issue] Fixed the welcome message contains single quote character
1 parent 3888d20 commit ca13647

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Theme/Block/Html/Header.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ public function getWelcome()
5757
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
5858
);
5959
}
60-
$this->_data['welcome'] = $this->escaper->escapeQuote($this->_data['welcome'], true);
61-
// phpcs:ignore Magento2.Functions.DiscouragedFunction
62-
return addslashes(__($this->_data['welcome']));
60+
$this->escaper->escapeQuote(__($this->_data['welcome'])->render(), true);
6361
}
6462
}

0 commit comments

Comments
 (0)