From 5ee2080112a206a6f3972e97e7369307d7d9e02a Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 20 Nov 2003 11:47:14 +0000 Subject: [PATCH] Escape double quotes too --- admin/lang.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/lang.php b/admin/lang.php index 65156034c6..d13625e849 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -289,6 +289,7 @@ function lang_save_file($path, $file, $strings) { $value = str_replace("\\","",$value); // Delete all slashes } $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