diff options
author | 2009-09-22 05:04:59 +0000 | |
---|---|---|
committer | 2009-09-22 05:04:59 +0000 | |
commit | f05dad73e062f5efbc5579f0ac60df8a8e8ff970 (patch) | |
tree | 8009e570b86692ad8cba2594e3e8a68de7e28b49 /includes/db | |
parent | dbb27278deb6dc784c4fcf5b49da83422235c35f (diff) | |
download | scuttle-f05dad73e062f5efbc5579f0ac60df8a8e8ff970.tar.gz scuttle-f05dad73e062f5efbc5579f0ac60df8a8e8ff970.zip |
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
Diffstat (limited to 'includes/db')
-rw-r--r-- | includes/db/mysqli.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/db/mysqli.php b/includes/db/mysqli.php index fa643c2..27814a7 100644 --- a/includes/db/mysqli.php +++ b/includes/db/mysqli.php @@ -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 = '') |