fixed a javascript error with <cr> & <lf>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user