diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index c3acf7dd..8d23ff74 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -1,5 +1,8 @@ CHANGE LOG +2016-11-01 by Bourbon +Remove username substring search functionality. Username searches must now be exact to return a result. + 2016-02-18 by newman Fix staff seeing FLS-assigned staff PMs. Add checkbox to allow adding a linked account or editing a linked account without updating staff notes diff --git a/sections/user/search.php b/sections/user/search.php index cf44e693..b9fa6612 100644 --- a/sections/user/search.php +++ b/sections/user/search.php @@ -35,7 +35,7 @@ if (isset($_GET['username'])) { Warned FROM users_main AS um JOIN users_info AS ui ON ui.UserID = um.ID - WHERE Username LIKE '%".db_string($_GET['username'], true)."%' + WHERE LCASE(Username) = LCASE('".db_string($_GET['username'], true)."') ORDER BY Username LIMIT $Limit"); $Results = $DB->to_array();