Skip to content
Browse files

Add better escaping for double quotes

  • Loading branch information...
1 parent f879140 commit ecc114ee3b59227d2c1cfe08d87b3400ee89c2f5 moodler committed Feb 2, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/lang.php
View
2 admin/lang.php
@@ -261,7 +261,7 @@ function lang_save_file($path, $file, $strings) {
$value = str_replace("\\","",$value); // Delete all slashes
}
$value = str_replace("$"."a", "\\$"."a", $value); // Add slashes for $a
- $value = str_replace("\"", "\\\"", $value); // Add slashes for "
+ $value = str_replace("\"", "\\\\\\\"", $value); // Add slashes for "
$value = str_replace("%","%%",$value); // Escape % characters
if ($id == "string" and $value != ""){
fwrite($f,"\$string['$stringname'] = \"$value\";\n");

0 comments on commit ecc114e

Please sign in to comment.
Something went wrong with that request. Please try again.