diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | 15 | ||||
-rw-r--r-- | bin/ScriptSyntax.xml | 1 |
2 files changed, 13 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 |
diff --git a/bin/ScriptSyntax.xml b/bin/ScriptSyntax.xml index 41b669d..78b1a39 100644 --- a/bin/ScriptSyntax.xml +++ b/bin/ScriptSyntax.xml | |||
@@ -1,3 +1,4 @@ | |||
1 | a6ccf55f-ded5-9093-571c-478cadca66de | ||
1 | <llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer> | 2 | <llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer> |
2 | <key>controls</key> | 3 | <key>controls</key> |
3 | <map> | 4 | <map> |