We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2191a83 commit e11e4beCopy full SHA for e11e4be
setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php
@@ -269,6 +269,7 @@ public function getCompiledTranslation()
269
private function getCompiledString($string)
270
{
271
$encloseQuote = $this->getQuote() == Phrase::QUOTE_DOUBLE ? Phrase::QUOTE_DOUBLE : Phrase::QUOTE_SINGLE;
272
+ //find all occurrences of ' and ", with no \ before it.
273
preg_match_all('/(?<!\\\\)[\'"]/', $string, $matches);
274
if (count($matches[0]) % 2 !== 0) {
275
$string = addslashes($string);
0 commit comments