aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-06-22 16:47:23 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-06-22 16:47:23 +0000
commit1e2db705ca061228ddedd312e00d99cfce2a2ae6 (patch)
treed7e9de18fa086a1d094c250a34cf56b565206ff9 /phpBB/includes/functions_admin.php
parent409749f85770cfd4ce47962ec71681e44f03b614 (diff)
downloadforums-1e2db705ca061228ddedd312e00d99cfce2a2ae6.tar
forums-1e2db705ca061228ddedd312e00d99cfce2a2ae6.tar.gz
forums-1e2db705ca061228ddedd312e00d99cfce2a2ae6.tar.bz2
forums-1e2db705ca061228ddedd312e00d99cfce2a2ae6.tar.xz
forums-1e2db705ca061228ddedd312e00d99cfce2a2ae6.zip
Fixing a few things for postgres. Thanks to wagnerch for researching the issue and providing a patch.
#12587 git-svn-id: file:///svn/phpbb/trunk@7787 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index f522670e5d..d734b67706 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2206,7 +2206,7 @@ function cache_moderators()
AND a.group_id = ug.group_id
AND ' . $db->sql_in_set('ug.user_id', $ug_id_ary) . "
AND ug.user_pending = 0
- AND o.auth_option LIKE 'm\_%'" .
+ AND o.auth_option LIKE '" . $db->sql_escape('m\_') . "%'" .
(($db->sql_layer == 'mssql' || $db->sql_layer == 'mssql_odbc') ? " ESCAPE '\\'" : ''),
));
$result = $db->sql_query($sql);