From: moodler Date: Thu, 20 Nov 2003 11:47:14 +0000 (+0000) Subject: Escape double quotes too X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5ee2080112a206a6f3972e97e7369307d7d9e02a;p=moodle.git Escape double quotes too --- 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");