aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql4.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-01-07 14:37:50 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-01-07 14:37:50 +0000
commitd2e324fe0bfd7ee20609453c873516682b914959 (patch)
tree663d37e5a7002455eae255d5373c4a74bd304498 /phpBB/db/mysql4.php
parent5048f1f2bc9dc972dfb74f404a1c9593a04ef6b5 (diff)
downloadforums-d2e324fe0bfd7ee20609453c873516682b914959.tar
forums-d2e324fe0bfd7ee20609453c873516682b914959.tar.gz
forums-d2e324fe0bfd7ee20609453c873516682b914959.tar.bz2
forums-d2e324fe0bfd7ee20609453c873516682b914959.tar.xz
forums-d2e324fe0bfd7ee20609453c873516682b914959.zip
Move escape functions to DB methods
git-svn-id: file:///svn/phpbb/trunk@3264 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db/mysql4.php')
-rw-r--r--phpBB/db/mysql4.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/db/mysql4.php b/phpBB/db/mysql4.php
index 6c1b027697..d6f00ed1d6 100644
--- a/phpBB/db/mysql4.php
+++ b/phpBB/db/mysql4.php
@@ -379,6 +379,16 @@ if (!empty($_REQUEST['explain']))
return ( $query_id ) ? @mysql_free_result($query_id) : false;
}
+ function sql_quote($msg)
+ {
+ return mysql_escape_string($msg);
+ }
+
+ function sql_escape($msg)
+ {
+ return mysql_escape_string($msg);
+ }
+
function sql_error($sql = '')
{
if ( !$this->return_on_error )