From da9e21a407b4eabb238473ead17e2d673780873a Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 2 Feb 2004 04:19:56 +0000 Subject: [PATCH] Strip linefeed characters \r from multi-line strings --- admin/lang.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/lang.php b/admin/lang.php index d13625e849..2f73fe75e2 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -291,6 +291,7 @@ function lang_save_file($path, $file, $strings) { $value = str_replace("'", "\\'", $value); // Add slashes for ' $value = str_replace('"', "\\\"", $value); // Add slashes for " $value = str_replace("%","%%",$value); // Escape % characters + $value = str_replace("\r", "",$value); // Remove linefeed characters if ($id == "string" and $value != ""){ fwrite($f,"\$string['$stringname'] = '$value';\n"); } -- 2.39.5