aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
index e9cda49..b06e93c 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
347 347
348 string s=""; 348 string s="";
349 char[] trimc = new char[] {' ','\t', '\n', '\r'}; 349 char[] trimc = new char[] {' ','\t', '\n', '\r'};
350 while((s = sr.ReadLine()) != null) 350
351 s = sr.ReadLine();
352 if(s == null)
353 return;
354 s = s.Trim(trimc);
355 UUID id;
356 if(!UUID.TryParse(s,out id))
357 return;
358
359 while ((s = sr.ReadLine()) != null)
351 { 360 {
352 s = s.Trim(trimc); 361 s = s.Trim(trimc);
353 if(String.IsNullOrEmpty(s) || s.StartsWith("<!--")) 362 if (String.IsNullOrEmpty(s) || s.StartsWith("<!--"))
354 continue; 363 continue;
355 sb.Append(s); 364 sb.Append(s);
356 } 365 }
357 m_scriptSyntaxXML = sb.ToString(); 366 m_scriptSyntaxXML = sb.ToString();
358 m_scriptSyntaxID = Util.ComputeSHA1UUID(m_scriptSyntaxXML); 367 m_scriptSyntaxID = id;
359 } 368 }
360 } 369 }
361 catch 370 catch