Skip to content

Commit

Permalink
Fix #12760: Case sensitivity of filter on manage user page
Browse files Browse the repository at this point in the history
The Manage User page provides a filter for the first letter of
usernames. This filter doesn't work if the database is case sensitive.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
  • Loading branch information
Andreas Schopper authored and davidhicks committed Feb 26, 2011
1 parent a786f9b commit 5fc8d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage_user_page.php
Expand Up @@ -153,7 +153,7 @@
$t_where = db_helper_compare_days("" . db_now() . "","date_created","<= $days_old");
} else {
$c_prefix = db_prepare_string($f_filter);
$t_where = "(username like '$c_prefix%')";
$t_where = "(UPPER(username) LIKE '$c_prefix%')";
}

$p_per_page = 50;
Expand Down

0 comments on commit 5fc8d77

Please sign in to comment.