diff options
author | UbitUmarov | 2018-01-05 22:37:42 +0000 |
---|---|---|
committer | UbitUmarov | 2018-01-05 22:37:42 +0000 |
commit | 875ca104b85dbf48fc0e5035dc2c01b10a61f8e9 (patch) | |
tree | 5a48cbd483b57c88d5be9c012e8f28422f3e368f /OpenSim/Region/Framework/Scenes/TerrainChannel.cs | |
parent | Merge branch 'master' into httptests (diff) | |
parent | a few more xml things (diff) | |
download | opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.zip opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.tar.gz opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.tar.bz2 opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.tar.xz |
Merge branch 'master' into httptests
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 |