fixed a javascript error with <cr> & <lf>

This commit is contained in:
Loïc Chapeaux
2001-09-06 18:35:20 +00:00
parent f4f72557f3
commit b9cb1e571d

View File

@@ -613,6 +613,9 @@ if (!defined('__LIB_INC__')){
{
$a_string = str_replace('"', '&quot;', $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