If a friends identifier which is too short is given to HGFriendsModule.GetOnlineFriends() then spit out a warning rather than failing on the String.Substring().

This is to progress http://opensimulator.org/mantis/view.php?id=5789
This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-14 16:06:06 +00:00
parent 49ec85ae15
commit ff36a1bc7b
2 changed files with 10 additions and 1 deletions

View File

@@ -11088,6 +11088,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Utils.BytesToString(avatarInterestUpdate.PropertiesData.LanguagesText));
return true;
}
private bool HandleGrantUserRights(IClientAPI sender, Packet Pack)
{
GrantUserRightsPacket GrantUserRights =
@@ -11108,6 +11109,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
GrantUserRights.Rights[0].RelatedRights);
return true;
}
private bool HandlePlacesQuery(IClientAPI sender, Packet Pack)
{
PlacesQueryPacket placesQueryPacket =