mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-23 16:52:54 +02:00
tweak the sql_like_expression feature a little bit to allow correct escaping
git-svn-id: file:///svn/phpbb/trunk@7789 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1015,12 +1015,12 @@ switch ($mode)
|
||||
{
|
||||
for ($i = 97; $i < 123; $i++)
|
||||
{
|
||||
$sql_where .= ' AND u.username_clean NOT ' . $db->sql_like_expression(chr($i) . '%');
|
||||
$sql_where .= ' AND u.username_clean NOT ' . $db->sql_like_expression(chr($i) . $db->any_char);
|
||||
}
|
||||
}
|
||||
else if ($first_char)
|
||||
{
|
||||
$sql_where .= ' AND u.username_clean ' . $db->sql_like_expression(substr($first_char, 0, 1) . '%');
|
||||
$sql_where .= ' AND u.username_clean ' . $db->sql_like_expression(substr($first_char, 0, 1) . $db->any_char);
|
||||
}
|
||||
|
||||
// Are we looking at a usergroup? If so, fetch additional info
|
||||
|
Reference in New Issue
Block a user