From ecc114ee3b59227d2c1cfe08d87b3400ee89c2f5 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 2 Feb 2003 02:37:09 +0000 Subject: [PATCH] Add better escaping for double quotes --- admin/lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/lang.php b/admin/lang.php index d83007bc6d..0b3518d915 100644 --- a/admin/lang.php +++ b/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"); -- 2.39.5