diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/TerrainChannel.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainChannel.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs index 89d78cf..1beca04 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs | |||
@@ -196,13 +196,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
196 | // ITerrainChannel.LoadFromXmlString() | 196 | // ITerrainChannel.LoadFromXmlString() |
197 | public void LoadFromXmlString(string data) | 197 | public void LoadFromXmlString(string data) |
198 | { | 198 | { |
199 | StringReader sr = new StringReader(data); | 199 | using(StringReader sr = new StringReader(data)) |
200 | XmlTextReader reader = new XmlTextReader(sr); | 200 | { |
201 | reader.Read(); | 201 | using(XmlTextReader reader = new XmlTextReader(sr)) |
202 | 202 | { | |
203 | ReadXml(reader); | 203 | reader.DtdProcessing = DtdProcessing.Prohibit; |
204 | reader.Close(); | 204 | reader.XmlResolver = null; |
205 | sr.Close(); | 205 | ReadXml(reader); |
206 | } | ||
207 | } | ||
206 | } | 208 | } |
207 | 209 | ||
208 | // ITerrainChannel.Merge | 210 | // ITerrainChannel.Merge |