diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Capabilities/LLSD.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Capabilities/LLSD.cs')
-rw-r--r-- | OpenSim/Capabilities/LLSD.cs | 4 |
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"); |