Skip to content

Commit 6378616

Browse files
author
Hayder Sharhan
committed
MAGETWO-48819: [GitHub #3233] Arbitrary PHP code execution in M2.0.2
- No need to add slashes now that we do not do eval.
1 parent bf84fec commit 6378616

File tree

1 file changed

+0
-1
lines changed
  • setup/src/Magento/Setup/Module/I18n/Dictionary

1 file changed

+0
-1
lines changed

setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ private function getCompiledString($string)
271271
preg_match_all('/[^\\\\]' . $encloseQuote . '|' . $encloseQuote . '[^\\\\]/', $string, $matches);
272272
if (count($matches[0])) {
273273
$string = preg_replace('/([^\\\\])' . $encloseQuote . ' ?\. ?' . $encloseQuote . '/', '$1', $string);
274-
$string = addslashes($string);
275274
}
276275
return $string;
277276
}

0 commit comments

Comments
 (0)