Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add better escaping for double quotes

  • Loading branch information...
commit ecc114ee3b59227d2c1cfe08d87b3400ee89c2f5 1 parent f879140
moodler authored
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");
Please sign in to comment.
Something went wrong with that request. Please try again.