aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r--phpBB/includes/db/mysql.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 7e363721a9..ee7918473d 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -328,6 +328,16 @@ class dbal_mysql extends dbal
return @mysql_real_escape_string($msg, $this->db_connect_id);
}
+ function sql_escape_binary($msg)
+ {
+ // If the last char is
+ if (substr($msg, -1) == ' ')
+ {
+ $msg .= "\0";
+ }
+ return "'" . $this->sql_escape($msg) . "'";
+ }
+
/**
* Build db-specific query data
* @access: private