mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
generate_lang_file.php : fix to handle double-quotes in PHP output
This commit is contained in:
parent
4f1b44fdda
commit
dda02c0ff4
1 changed files with 2 additions and 0 deletions
|
@ -318,6 +318,8 @@ foreach($data as $key => $val) {
|
||||||
if ($copyoriginalvalue && $val=="") {
|
if ($copyoriginalvalue && $val=="") {
|
||||||
$val=$key;
|
$val=$key;
|
||||||
}
|
}
|
||||||
|
$key=str_replace('"','\\"',$key);
|
||||||
|
$val=str_replace('"','\\"',$val);
|
||||||
if ($additionalfileformat) {
|
if ($additionalfileformat) {
|
||||||
print "\$GLOBALS['LSlang'][\"$key\"] = \"$val\";\n";
|
print "\$GLOBALS['LSlang'][\"$key\"] = \"$val\";\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue