From b9cb1e571d74d7d76bec529154868719651273c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 6 Sep 2001 18:35:20 +0000 Subject: [PATCH] fixed a javascript error with & --- lib.inc.php3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib.inc.php3 b/lib.inc.php3 index bfdb2b5eb..519e92978 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -613,6 +613,9 @@ if (!defined('__LIB_INC__')){ { $a_string = str_replace('"', '"', $a_string); $a_string = str_replace('#', '\\#', addslashes($a_string)); + $a_string = str_replace("\012", '\\\\n', $a_string); + $a_string = str_replace("\015", '\\\\r', $a_string); + return (($add_backquotes) ? backquote($a_string) : $a_string); } // end of the 'sql_addslashes()' function