From 441ef301a34ab1968e74038e19066b37e7a74a66 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 17 Mar 2012 19:41:47 -0700 Subject: [PATCH] Amend to previous commit: normalize strings ToLower. --- .../Framework/UserManagement/HGUserManagementModule.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs index 6543bf294b..8077a7a53b 100644 --- a/OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs +++ b/OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs @@ -91,7 +91,9 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement bool found = false; foreach (UserData d in m_UserCache.Values) { - if (d.LastName.StartsWith("@") && (d.FirstName.Equals(words[0]) || d.LastName.Equals(words[1]))) + if (d.LastName.StartsWith("@") && + (d.FirstName.ToLower().Equals(words[0].ToLower()) || + d.LastName.ToLower().Equals(words[1].ToLower()))) { users.Add(d); found = true; @@ -109,7 +111,9 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement { foreach (UserData d in m_UserCache.Values) { - if (d.LastName.StartsWith("@") && (d.FirstName.StartsWith(query) || d.LastName.StartsWith(query))) + if (d.LastName.StartsWith("@") && + (d.FirstName.ToLower().StartsWith(query.ToLower()) || + d.LastName.ToLower().StartsWith(query.ToLower()))) users.Add(d); } }