aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql4.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-02-16 10:26:52 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-02-16 10:26:52 +0000
commitf2f0dc78929228619f8644d6553a02a8d1572242 (patch)
tree42cd23d2950ee115ca96814f516d13deeac1fea4 /phpBB/includes/db/mysql4.php
parent2ec9c9c82c2fdba1056bbab3d17041a06daf99aa (diff)
downloadforums-f2f0dc78929228619f8644d6553a02a8d1572242.tar
forums-f2f0dc78929228619f8644d6553a02a8d1572242.tar.gz
forums-f2f0dc78929228619f8644d6553a02a8d1572242.tar.bz2
forums-f2f0dc78929228619f8644d6553a02a8d1572242.tar.xz
forums-f2f0dc78929228619f8644d6553a02a8d1572242.zip
- only minor adjustements (we are now able to use other functions due to the increased php requirements)
git-svn-id: file:///svn/phpbb/trunk@5557 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql4.php')
-rw-r--r--phpBB/includes/db/mysql4.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php
index aa8e22c058..db2356d26d 100644
--- a/phpBB/includes/db/mysql4.php
+++ b/phpBB/includes/db/mysql4.php
@@ -279,7 +279,12 @@ class dbal_mysql4 extends dbal
*/
function sql_escape($msg)
{
- return mysql_escape_string($msg);
+ if (!$this->db_connect_id)
+ {
+ return @mysql_real_escape_string($msg);
+ }
+
+ return @mysql_real_escape_string($msg, $this->db_connect_id);
}
/**