mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSlang: fix handling backslash in export POT file
This commit is contained in:
parent
1c900320db
commit
b3cd453918
1 changed files with 2 additions and 2 deletions
|
@ -822,8 +822,8 @@ function _cli_output_php($fd) {
|
|||
* @return string The cleaned string
|
||||
*/
|
||||
function _cli_clean_for_pot_file($val) {
|
||||
$val = str_replace('"', '\\"', $val);
|
||||
return str_replace("\n", "\\n", $val);
|
||||
$val = preg_replace('/([^\\\\])"/', '$1\"', $val);
|
||||
return str_replace("\n", '\n', $val);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue