diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index e9cda496f7..b06e93c0b1 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs @@ -347,15 +347,24 @@ namespace OpenSim.Region.ClientStack.Linden string s=""; char[] trimc = new char[] {' ','\t', '\n', '\r'}; - while((s = sr.ReadLine()) != null) + + s = sr.ReadLine(); + if(s == null) + return; + s = s.Trim(trimc); + UUID id; + if(!UUID.TryParse(s,out id)) + return; + + while ((s = sr.ReadLine()) != null) { s = s.Trim(trimc); - if(String.IsNullOrEmpty(s) || s.StartsWith("