summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-22 05:04:59 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-22 05:04:59 +0000
commitf05dad73e062f5efbc5579f0ac60df8a8e8ff970 (patch)
tree8009e570b86692ad8cba2594e3e8a68de7e28b49
parentdbb27278deb6dc784c4fcf5b49da83422235c35f (diff)
downloadsemanticscuttle-f05dad73e062f5efbc5579f0ac60df8a8e8ff970.tar.gz
semanticscuttle-f05dad73e062f5efbc5579f0ac60df8a8e8ff970.tar.bz2
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
-rw-r--r--includes/db/mysqli.php6
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 = '')