mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
new wrapper for LIKE expressions to streamline the fixes. We actually need to adjust them for different DBMS as well as SQLite2 not supporting escaping characters in LIKE statements (which is a reason why we think about dropping sqlite support completely).
git-svn-id: file:///svn/phpbb/trunk@7788 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -3877,14 +3877,7 @@ function page_header($page_title = '', $display_online_list = true)
|
||||
{
|
||||
$f = request_var('f', 0);
|
||||
|
||||
// Do not change this (it is defined as _f_={forum_id}x within session.php)
|
||||
$reading_sql = " AND s.session_page LIKE '%" . $db->sql_escape("\_f\_={$f}x") . "%'";
|
||||
|
||||
// Specify escape character for MSSQL
|
||||
if ($db->sql_layer == 'mssql' || $db->sql_layer == 'mssql_odbc')
|
||||
{
|
||||
$reading_sql .= " ESCAPE '\\' ";
|
||||
}
|
||||
$reading_sql = ' AND s.session_page ' . $db->sql_like_expression("%_f_={$f}x%");
|
||||
}
|
||||
|
||||
// Get number of online guests
|
||||
|
Reference in New Issue
Block a user