From 8be28399efb5bcc779e687148613fe427593bfa4 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 7 Apr 2019 10:14:51 +0200 Subject: Fix quote escaping on CLI (#2355) for translation manipulations --- cli/i18n/I18nFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/i18n/I18nFile.php b/cli/i18n/I18nFile.php index bdcf3c079..56459ce8b 100644 --- a/cli/i18n/I18nFile.php +++ b/cli/i18n/I18nFile.php @@ -84,7 +84,7 @@ class I18nFile implements I18nFileInterface{ foreach ($translation as $compoundKey => $value) { $keys = explode('.', $compoundKey); array_shift($keys); - eval("\$a['" . implode("']['", $keys) . "'] = '" . $value . "';"); + eval("\$a['" . implode("']['", $keys) . "'] = '" . addcslashes($value, "'") . "';"); } return $a; -- cgit v1.2.3