From dda02c0ff47fda747fb26e26c33ce329c2c21148 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 28 Jan 2016 18:10:08 +0100 Subject: [PATCH] generate_lang_file.php : fix to handle double-quotes in PHP output --- public_html/lang/generate_lang_file.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 1b2d30c2..e9aa9a72 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -318,6 +318,8 @@ foreach($data as $key => $val) { if ($copyoriginalvalue && $val=="") { $val=$key; } + $key=str_replace('"','\\"',$key); + $val=str_replace('"','\\"',$val); if ($additionalfileformat) { print "\$GLOBALS['LSlang'][\"$key\"] = \"$val\";\n"; }