When searching for users, don't add users from the local cache if they have an invalid UUID
Resolves http://opensimulator.org/mantis/view.php?id=69350.8.0.3
parent
a2dd8f31de
commit
c8583e566d
|
@ -278,7 +278,8 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
|||
{
|
||||
foreach (UserData data in m_UserCache.Values)
|
||||
{
|
||||
if (users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
|
||||
if (data.Id != UUID.Zero &&
|
||||
users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
|
||||
(data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower())))
|
||||
users.Add(data);
|
||||
}
|
||||
|
@ -725,4 +726,4 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue