summaryrefslogtreecommitdiffstats
path: root/dbal/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'dbal/mysql.php')
-rw-r--r--dbal/mysql.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/dbal/mysql.php b/dbal/mysql.php
index 3dc860f..0f2db7a 100644
--- a/dbal/mysql.php
+++ b/dbal/mysql.php
@@ -356,10 +356,7 @@ class SQL_DB
*/
function escape($string)
{
- $string = str_replace("'", "''", $string);
- $string = str_replace('\\', '\\\\', $string);
-
- return $string;
+ return mysqli_real_escape_string($this->link_id, $string);
}
/**