From f05dad73e062f5efbc5579f0ac60df8a8e8ff970 Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 22 Sep 2009 05:04:59 +0000 Subject: 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 --- includes/db/mysqli.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'includes/db/mysqli.php') 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 = '') -- cgit v1.2.3