1
0
Fork 0
mirror of https://gitlab.easter-eggs.com/ee/ldapsaisie.git synced 2025-04-17 08:51:13 +02:00

generate_lang_file.php : fix to handle double-quotes in PHP output

This commit is contained in:
Benjamin Renard 2016-01-28 18:10:08 +01:00
parent 4f1b44fdda
commit dda02c0ff4

View file

@ -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";
}