We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e98a158 + b1ed926 commit 8ea45dfCopy full SHA for 8ea45df
interface/web/admin/language_edit.php
@@ -57,7 +57,7 @@
57
$file_content = "<?php\n";
58
foreach($_POST['records'] as $key => $val) {
59
$val = stripslashes($val);
60
- $val = str_replace('"', '\"', $val);
+ $val = preg_replace('/(^|[^\\\\])((\\\\\\\\)*)"/', '$1$2\\"', $val);
61
$val = str_replace('$', '', $val);
62
$file_content .= '$wb['."'$key'".'] = "'.$val.'";'."\n";
63
$msg = 'File saved.';
0 commit comments