aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2018-10-25 02:36:36 +0100
committerUbitUmarov2018-10-25 02:36:36 +0100
commita1d132d3ca29eee50de3d77387e8079642fbafdb (patch)
treebb1a580afade7ec6c1563809ec5666ec7cb3f67f /OpenSim/Region
parentupdate syntax file (diff)
downloadopensim-SC-a1d132d3ca29eee50de3d77387e8079642fbafdb.zip
opensim-SC-a1d132d3ca29eee50de3d77387e8079642fbafdb.tar.gz
opensim-SC-a1d132d3ca29eee50de3d77387e8079642fbafdb.tar.bz2
opensim-SC-a1d132d3ca29eee50de3d77387e8079642fbafdb.tar.xz
let the syntax file include its id again
Diffstat (limited to 'OpenSim/Region')
-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