Fix mysqli db class: escaping did not work at all
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@365 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
dbb27278de
commit
f05dad73e0
1 changed files with 1 additions and 5 deletions
|
@ -380,11 +380,7 @@ class sql_db
|
|||
}
|
||||
|
||||
function sql_escape($msg) {
|
||||
if (function_exists('mysql_real_escape_string')) {
|
||||
return @mysql_real_escape_string($msg, $this->db_connect_id);
|
||||
} else {
|
||||
return mysql_escape_string($msg);
|
||||
}
|
||||
return mysqli_real_escape_string($this->db_connect_id, $msg);
|
||||
}
|
||||
|
||||
function sql_error($sql = '')
|
||||
|
|
Loading…
Reference in a new issue