aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2012-03-17 19:41:47 -0700
committerDiva Canto2012-03-17 19:41:47 -0700
commit441ef301a34ab1968e74038e19066b37e7a74a66 (patch)
tree993b6efc47ac4809ea381522173ec7a407d130fd
parentMore on HG access control. This commit splits the UserManagementModule into t... (diff)
downloadopensim-SC_OLD-441ef301a34ab1968e74038e19066b37e7a74a66.zip
opensim-SC_OLD-441ef301a34ab1968e74038e19066b37e7a74a66.tar.gz
opensim-SC_OLD-441ef301a34ab1968e74038e19066b37e7a74a66.tar.bz2
opensim-SC_OLD-441ef301a34ab1968e74038e19066b37e7a74a66.tar.xz
Amend to previous commit: normalize strings ToLower.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/HGUserManagementModule.cs
index 6543bf2..8077a7a 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
91 bool found = false; 91 bool found = false;
92 foreach (UserData d in m_UserCache.Values) 92 foreach (UserData d in m_UserCache.Values)
93 { 93 {
94 if (d.LastName.StartsWith("@") && (d.FirstName.Equals(words[0]) || d.LastName.Equals(words[1]))) 94 if (d.LastName.StartsWith("@") &&
95 (d.FirstName.ToLower().Equals(words[0].ToLower()) ||
96 d.LastName.ToLower().Equals(words[1].ToLower())))
95 { 97 {
96 users.Add(d); 98 users.Add(d);
97 found = true; 99 found = true;
@@ -109,7 +111,9 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
109 { 111 {
110 foreach (UserData d in m_UserCache.Values) 112 foreach (UserData d in m_UserCache.Values)
111 { 113 {
112 if (d.LastName.StartsWith("@") && (d.FirstName.StartsWith(query) || d.LastName.StartsWith(query))) 114 if (d.LastName.StartsWith("@") &&
115 (d.FirstName.ToLower().StartsWith(query.ToLower()) ||
116 d.LastName.ToLower().StartsWith(query.ToLower())))
113 users.Add(d); 117 users.Add(d);
114 } 118 }
115 } 119 }