aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Capabilities/LLSD.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Capabilities/LLSD.cs')
-rw-r--r--OpenSim/Capabilities/LLSD.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Capabilities/LLSD.cs b/OpenSim/Capabilities/LLSD.cs
index c59cede..fc41113 100644
--- a/OpenSim/Capabilities/LLSD.cs
+++ b/OpenSim/Capabilities/LLSD.cs
@@ -83,6 +83,8 @@ namespace OpenSim.Framework.Capabilities
83 { 83 {
84 using (XmlTextReader reader = new XmlTextReader(st)) 84 using (XmlTextReader reader = new XmlTextReader(st))
85 { 85 {
86 reader.ProhibitDtd = true;
87
86 reader.Read(); 88 reader.Read();
87 SkipWS(reader); 89 SkipWS(reader);
88 90
@@ -566,7 +568,7 @@ namespace OpenSim.Framework.Capabilities
566 endPos = FindEnd(llsd, 1); 568 endPos = FindEnd(llsd, 1);
567 569
568 if (Double.TryParse(llsd.Substring(1, endPos - 1), NumberStyles.Float, 570 if (Double.TryParse(llsd.Substring(1, endPos - 1), NumberStyles.Float,
569 Utils.EnUsCulture.NumberFormat, out value)) 571 Culture.NumberFormatInfo, out value))
570 return value; 572 return value;
571 else 573 else
572 throw new LLSDParseException("Failed to parse double value type"); 574 throw new LLSDParseException("Failed to parse double value type");