aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-10-29 14:59:19 +0000
committerNils Adermann <naderman@naderman.de>2006-10-29 14:59:19 +0000
commit7e55e53d10702a9d8af8a70685801aa486fab3dc (patch)
tree1db276e3f68aa9eb1f54891f237bc555498d913a /phpBB/memberlist.php
parentb65cadf414716cf158c75425a1df61332c4ad94a (diff)
downloadforums-7e55e53d10702a9d8af8a70685801aa486fab3dc.tar
forums-7e55e53d10702a9d8af8a70685801aa486fab3dc.tar.gz
forums-7e55e53d10702a9d8af8a70685801aa486fab3dc.tar.bz2
forums-7e55e53d10702a9d8af8a70685801aa486fab3dc.tar.xz
forums-7e55e53d10702a9d8af8a70685801aa486fab3dc.zip
- Handle upper/lower case in memberlist properly [Bug #5012]
git-svn-id: file:///svn/phpbb/trunk@6537 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 6e0a3bf175..f50e79ed21 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -935,14 +935,14 @@ switch ($mode)
if ($first_char == 'other')
{
- for ($i = 65; $i < 91; $i++)
+ for ($i = 97; $i < 123; $i++)
{
- $sql_where .= " AND u.username NOT LIKE '" . chr($i) . "%'";
+ $sql_where .= " AND u.username_clean NOT LIKE '" . chr($i) . "%'";
}
}
else if ($first_char)
{
- $sql_where .= " AND u.username LIKE '" . $db->sql_escape(substr($first_char, 0, 1)) . "%'";
+ $sql_where .= " AND u.username_clean LIKE '" . $db->sql_escape(substr($first_char, 0, 1)) . "%'";
}
// Are we looking at a usergroup? If so, fetch additional info
@@ -1068,9 +1068,9 @@ switch ($mode)
}
$s_char_options = '<option value=""' . ((!$first_char) ? ' selected="selected"' : '') . '>&nbsp; &nbsp;</option>';
- for ($i = 65; $i < 91; $i++)
+ for ($i = 97; $i < 123; $i++)
{
- $s_char_options .= '<option value="' . chr($i) . '"' . (($first_char == chr($i)) ? ' selected="selected"' : '') . '>' . chr($i) . '</option>';
+ $s_char_options .= '<option value="' . chr($i) . '"' . (($first_char == chr($i)) ? ' selected="selected"' : '') . '>' . chr($i-32) . '</option>';
}
$s_char_options .= '<option value="other"' . (($first_char == 'other') ? ' selected="selected"' : '') . '>' . $user->lang['OTHER'] . '</option>';