diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
12 files changed, 18 insertions, 44 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs b/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs index 2128d58..b8db3a9 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/DefaultAvatarAnimations.cs | |||
@@ -58,11 +58,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
58 | 58 | ||
59 | using (XmlTextReader reader = new XmlTextReader(path)) | 59 | using (XmlTextReader reader = new XmlTextReader(path)) |
60 | { | 60 | { |
61 | reader.ProhibitDtd = true; | ||
62 | |||
63 | XmlDocument doc = new XmlDocument(); | 61 | XmlDocument doc = new XmlDocument(); |
64 | doc.XmlResolver = null; | ||
65 | |||
66 | doc.Load(reader); | 62 | doc.Load(reader); |
67 | // if (doc.DocumentElement != null) | 63 | // if (doc.DocumentElement != null) |
68 | // { | 64 | // { |
diff --git a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs index 80ee510..bf20c32 100644 --- a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs +++ b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs | |||
@@ -497,7 +497,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
497 | 497 | ||
498 | m_group.RootPart.Velocity = Vector3.Zero; | 498 | m_group.RootPart.Velocity = Vector3.Zero; |
499 | m_group.RootPart.AngularVelocity = Vector3.Zero; | 499 | m_group.RootPart.AngularVelocity = Vector3.Zero; |
500 | m_skippedUpdates = 1000; | 500 | // m_skippedUpdates = 1000; |
501 | // m_group.SendGroupRootTerseUpdate(); | 501 | // m_group.SendGroupRootTerseUpdate(); |
502 | m_group.RootPart.ScheduleTerseUpdate(); | 502 | m_group.RootPart.ScheduleTerseUpdate(); |
503 | m_group.Scene.EventManager.TriggerMovingEndEvent(m_group.RootPart.LocalId); | 503 | m_group.Scene.EventManager.TriggerMovingEndEvent(m_group.RootPart.LocalId); |
@@ -521,7 +521,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
521 | return; | 521 | return; |
522 | if (m_running && !m_waitingCrossing) | 522 | if (m_running && !m_waitingCrossing) |
523 | StartTimer(); | 523 | StartTimer(); |
524 | m_skippedUpdates = 1000; | 524 | // m_skippedUpdates = 1000; |
525 | } | 525 | } |
526 | } | 526 | } |
527 | 527 | ||
@@ -652,10 +652,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
652 | m_frames.Clear(); | 652 | m_frames.Clear(); |
653 | } | 653 | } |
654 | 654 | ||
655 | [NonSerialized()] Vector3 m_lastPosUpdate; | 655 | // [NonSerialized()] Vector3 m_lastPosUpdate; |
656 | [NonSerialized()] Quaternion m_lastRotationUpdate; | 656 | // [NonSerialized()] Quaternion m_lastRotationUpdate; |
657 | [NonSerialized()] Vector3 m_currentVel; | 657 | [NonSerialized()] Vector3 m_currentVel; |
658 | [NonSerialized()] int m_skippedUpdates; | 658 | // [NonSerialized()] int m_skippedUpdates; |
659 | [NonSerialized()] double m_lasttickMS; | 659 | [NonSerialized()] double m_lasttickMS; |
660 | 660 | ||
661 | private void DoOnTimer(double tickDuration) | 661 | private void DoOnTimer(double tickDuration) |
@@ -669,14 +669,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
669 | if (m_group == null) | 669 | if (m_group == null) |
670 | return; | 670 | return; |
671 | 671 | ||
672 | bool update = false; | 672 | // bool update = false; |
673 | 673 | ||
674 | if (m_selected) | 674 | if (m_selected) |
675 | { | 675 | { |
676 | if (m_group.RootPart.Velocity != Vector3.Zero) | 676 | if (m_group.RootPart.Velocity != Vector3.Zero) |
677 | { | 677 | { |
678 | m_group.RootPart.Velocity = Vector3.Zero; | 678 | m_group.RootPart.Velocity = Vector3.Zero; |
679 | m_skippedUpdates = 1000; | 679 | // m_skippedUpdates = 1000; |
680 | // m_group.SendGroupRootTerseUpdate(); | 680 | // m_group.SendGroupRootTerseUpdate(); |
681 | m_group.RootPart.ScheduleTerseUpdate(); | 681 | m_group.RootPart.ScheduleTerseUpdate(); |
682 | } | 682 | } |
@@ -690,7 +690,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
690 | // retry to set the position that evtually caused the outbound | 690 | // retry to set the position that evtually caused the outbound |
691 | // if still outside region this will call startCrossing below | 691 | // if still outside region this will call startCrossing below |
692 | m_isCrossing = false; | 692 | m_isCrossing = false; |
693 | m_skippedUpdates = 1000; | 693 | // m_skippedUpdates = 1000; |
694 | m_group.AbsolutePosition = m_nextPosition; | 694 | m_group.AbsolutePosition = m_nextPosition; |
695 | 695 | ||
696 | if (!m_isCrossing) | 696 | if (!m_isCrossing) |
@@ -724,7 +724,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
724 | 724 | ||
725 | m_currentFrame.TimeMS += (int)tickDuration; | 725 | m_currentFrame.TimeMS += (int)tickDuration; |
726 | m_lasttickMS = nowMS - 50f; | 726 | m_lasttickMS = nowMS - 50f; |
727 | update = true; | 727 | // update = true; |
728 | } | 728 | } |
729 | 729 | ||
730 | int elapsed = (int)(nowMS - m_lasttickMS); | 730 | int elapsed = (int)(nowMS - m_lasttickMS); |
@@ -761,7 +761,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
761 | else | 761 | else |
762 | m_group.RootPart.Velocity = Vector3.Zero; | 762 | m_group.RootPart.Velocity = Vector3.Zero; |
763 | } | 763 | } |
764 | update = true; | 764 | // update = true; |
765 | } | 765 | } |
766 | else | 766 | else |
767 | { | 767 | { |
@@ -858,7 +858,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
858 | if (m_group.RootPart.Velocity != Vector3.Zero) | 858 | if (m_group.RootPart.Velocity != Vector3.Zero) |
859 | { | 859 | { |
860 | m_group.RootPart.Velocity = Vector3.Zero; | 860 | m_group.RootPart.Velocity = Vector3.Zero; |
861 | m_skippedUpdates = 1000; | 861 | // m_skippedUpdates = 1000; |
862 | // m_group.SendGroupRootTerseUpdate(); | 862 | // m_group.SendGroupRootTerseUpdate(); |
863 | m_group.RootPart.ScheduleTerseUpdate(); | 863 | m_group.RootPart.ScheduleTerseUpdate(); |
864 | } | 864 | } |
@@ -871,7 +871,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
871 | if (m_group != null) | 871 | if (m_group != null) |
872 | { | 872 | { |
873 | m_group.RootPart.Velocity = Vector3.Zero; | 873 | m_group.RootPart.Velocity = Vector3.Zero; |
874 | m_skippedUpdates = 1000; | 874 | // m_skippedUpdates = 1000; |
875 | // m_group.SendGroupRootTerseUpdate(); | 875 | // m_group.SendGroupRootTerseUpdate(); |
876 | m_group.RootPart.ScheduleTerseUpdate(); | 876 | m_group.RootPart.ScheduleTerseUpdate(); |
877 | 877 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SOPVehicle.cs b/OpenSim/Region/Framework/Scenes/SOPVehicle.cs index 6683614..351eda3 100644 --- a/OpenSim/Region/Framework/Scenes/SOPVehicle.cs +++ b/OpenSim/Region/Framework/Scenes/SOPVehicle.cs | |||
@@ -593,7 +593,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
593 | UTF8Encoding enc = new UTF8Encoding(); | 593 | UTF8Encoding enc = new UTF8Encoding(); |
594 | MemoryStream ms = new MemoryStream(enc.GetBytes(text)); | 594 | MemoryStream ms = new MemoryStream(enc.GetBytes(text)); |
595 | XmlTextReader xreader = new XmlTextReader(ms); | 595 | XmlTextReader xreader = new XmlTextReader(ms); |
596 | xreader.ProhibitDtd = true; | ||
597 | 596 | ||
598 | SOPVehicle v = new SOPVehicle(); | 597 | SOPVehicle v = new SOPVehicle(); |
599 | bool error; | 598 | bool error; |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index b3303a0..e6e0354 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2389,7 +2389,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2389 | { | 2389 | { |
2390 | using (XmlTextReader wrappedReader = new XmlTextReader(xmlData, XmlNodeType.Element, null)) | 2390 | using (XmlTextReader wrappedReader = new XmlTextReader(xmlData, XmlNodeType.Element, null)) |
2391 | { | 2391 | { |
2392 | using (XmlReader reader = XmlReader.Create(wrappedReader, new XmlReaderSettings() { IgnoreWhitespace = true, ConformanceLevel = ConformanceLevel.Fragment, ProhibitDtd = true })) | 2392 | using (XmlReader reader = XmlReader.Create(wrappedReader, new XmlReaderSettings() { IgnoreWhitespace = true, ConformanceLevel = ConformanceLevel.Fragment})) |
2393 | { | 2393 | { |
2394 | reader.Read(); | 2394 | reader.Read(); |
2395 | bool isSingleObject = reader.Name != "CoalescedObject"; | 2395 | bool isSingleObject = reader.Name != "CoalescedObject"; |
@@ -2420,7 +2420,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2420 | else | 2420 | else |
2421 | { | 2421 | { |
2422 | XmlDocument doc = new XmlDocument(); | 2422 | XmlDocument doc = new XmlDocument(); |
2423 | doc.XmlResolver=null; | ||
2424 | doc.LoadXml(xmlData); | 2423 | doc.LoadXml(xmlData); |
2425 | XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject"); | 2424 | XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject"); |
2426 | XmlElement coll = (XmlElement)e; | 2425 | XmlElement coll = (XmlElement)e; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index 1e418df..f454908 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs | |||
@@ -196,8 +196,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
196 | 196 | ||
197 | public void SendSimOnlineNotification(ulong regionHandle) | 197 | public void SendSimOnlineNotification(ulong regionHandle) |
198 | { | 198 | { |
199 | RegionInfo Result = null; | ||
200 | |||
201 | Scene s = m_localScenes.FindValue(delegate(Scene x) | 199 | Scene s = m_localScenes.FindValue(delegate(Scene x) |
202 | { | 200 | { |
203 | if (x.RegionInfo.RegionHandle == regionHandle) | 201 | if (x.RegionInfo.RegionHandle == regionHandle) |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs index c20c81d..bf217a5 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs | |||
@@ -505,7 +505,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
505 | foreach (KeyValuePair<UUID, string> state in states) | 505 | foreach (KeyValuePair<UUID, string> state in states) |
506 | { | 506 | { |
507 | XmlDocument sdoc = new XmlDocument(); | 507 | XmlDocument sdoc = new XmlDocument(); |
508 | sdoc.XmlResolver=null; | ||
509 | sdoc.LoadXml(state.Value); | 508 | sdoc.LoadXml(state.Value); |
510 | XmlNodeList rootL = sdoc.GetElementsByTagName("State"); | 509 | XmlNodeList rootL = sdoc.GetElementsByTagName("State"); |
511 | XmlNode rootNode = rootL[0]; | 510 | XmlNode rootNode = rootL[0]; |
@@ -541,7 +540,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
541 | return; | 540 | return; |
542 | 541 | ||
543 | XmlDocument doc = new XmlDocument(); | 542 | XmlDocument doc = new XmlDocument(); |
544 | doc.XmlResolver=null; | ||
545 | try | 543 | try |
546 | { | 544 | { |
547 | doc.LoadXml(objXMLData); | 545 | doc.LoadXml(objXMLData); |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 30f7151..4934b83 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -250,7 +250,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
250 | } | 250 | } |
251 | 251 | ||
252 | foreach (TaskInventoryItem item in m_items.Values) | 252 | foreach (TaskInventoryItem item in m_items.Values) |
253 | item.GroupID = groupID; | 253 | item.GroupID = groupID; |
254 | 254 | ||
255 | m_items.LockItemsForWrite(false); | 255 | m_items.LockItemsForWrite(false); |
256 | } | 256 | } |
@@ -455,7 +455,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
455 | if (m_part.ParentGroup.m_savedScriptState.ContainsKey(stateID)) | 455 | if (m_part.ParentGroup.m_savedScriptState.ContainsKey(stateID)) |
456 | { | 456 | { |
457 | XmlDocument doc = new XmlDocument(); | 457 | XmlDocument doc = new XmlDocument(); |
458 | doc.XmlResolver=null; | ||
459 | doc.LoadXml(m_part.ParentGroup.m_savedScriptState[stateID]); | 458 | doc.LoadXml(m_part.ParentGroup.m_savedScriptState[stateID]); |
460 | 459 | ||
461 | ////////// CRUFT WARNING /////////////////////////////////// | 460 | ////////// CRUFT WARNING /////////////////////////////////// |
@@ -1454,7 +1453,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1454 | { | 1453 | { |
1455 | if (item.InvType == (int)InventoryType.LSL) | 1454 | if (item.InvType == (int)InventoryType.LSL) |
1456 | count++; | 1455 | count++; |
1457 | } | 1456 | } |
1458 | m_items.LockItemsForRead(false); | 1457 | m_items.LockItemsForRead(false); |
1459 | return count; | 1458 | return count; |
1460 | } | 1459 | } |
@@ -1479,9 +1478,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1479 | { | 1478 | { |
1480 | if (engine.GetScriptState(item.ItemID)) | 1479 | if (engine.GetScriptState(item.ItemID)) |
1481 | count++; | 1480 | count++; |
1481 | } | ||
1482 | } | 1482 | } |
1483 | } | 1483 | } |
1484 | } | ||
1485 | return count; | 1484 | return count; |
1486 | } | 1485 | } |
1487 | 1486 | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index e10e787..ec09fe6 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -77,7 +77,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
77 | public class ScenePresence : EntityBase, IScenePresence | 77 | public class ScenePresence : EntityBase, IScenePresence |
78 | { | 78 | { |
79 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 79 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
80 | private static readonly String LogHeader = "[SCENE PRESENCE]"; | ||
81 | 80 | ||
82 | // ~ScenePresence() | 81 | // ~ScenePresence() |
83 | // { | 82 | // { |
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/CoalescedSceneObjectsSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/CoalescedSceneObjectsSerializer.cs index abcb573..41f3ef4 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/CoalescedSceneObjectsSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/CoalescedSceneObjectsSerializer.cs | |||
@@ -133,8 +133,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
133 | { | 133 | { |
134 | using (XmlTextReader reader = new XmlTextReader(sr)) | 134 | using (XmlTextReader reader = new XmlTextReader(sr)) |
135 | { | 135 | { |
136 | reader.ProhibitDtd = true; | ||
137 | |||
138 | reader.MoveToContent(); // skip possible xml declaration | 136 | reader.MoveToContent(); // skip possible xml declaration |
139 | 137 | ||
140 | if (reader.Name != "CoalescedObject") | 138 | if (reader.Name != "CoalescedObject") |
@@ -149,7 +147,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
149 | } | 147 | } |
150 | 148 | ||
151 | XmlDocument doc = new XmlDocument(); | 149 | XmlDocument doc = new XmlDocument(); |
152 | doc.XmlResolver=null; | ||
153 | doc.LoadXml(xml); | 150 | doc.LoadXml(xml); |
154 | XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject"); | 151 | XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject"); |
155 | if (e == null) | 152 | if (e == null) |
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index c5a3a22..590a5d4 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
63 | String fixedData = ExternalRepresentationUtils.SanitizeXml(xmlData); | 63 | String fixedData = ExternalRepresentationUtils.SanitizeXml(xmlData); |
64 | using (XmlTextReader wrappedReader = new XmlTextReader(fixedData, XmlNodeType.Element, null)) | 64 | using (XmlTextReader wrappedReader = new XmlTextReader(fixedData, XmlNodeType.Element, null)) |
65 | { | 65 | { |
66 | using (XmlReader reader = XmlReader.Create(wrappedReader, new XmlReaderSettings() { IgnoreWhitespace = true, ConformanceLevel = ConformanceLevel.Fragment, ProhibitDtd = true })) | 66 | using (XmlReader reader = XmlReader.Create(wrappedReader, new XmlReaderSettings() { IgnoreWhitespace = true, ConformanceLevel = ConformanceLevel.Fragment})) |
67 | { | 67 | { |
68 | try | 68 | try |
69 | { | 69 | { |
@@ -255,7 +255,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
255 | try | 255 | try |
256 | { | 256 | { |
257 | XmlDocument doc = new XmlDocument(); | 257 | XmlDocument doc = new XmlDocument(); |
258 | doc.XmlResolver=null; | ||
259 | doc.LoadXml(xmlData); | 258 | doc.LoadXml(xmlData); |
260 | 259 | ||
261 | XmlNodeList parts = doc.GetElementsByTagName("SceneObjectPart"); | 260 | XmlNodeList parts = doc.GetElementsByTagName("SceneObjectPart"); |
@@ -271,11 +270,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
271 | using(StringReader sr = new StringReader(parts[0].OuterXml)) | 270 | using(StringReader sr = new StringReader(parts[0].OuterXml)) |
272 | { | 271 | { |
273 | using(XmlTextReader reader = new XmlTextReader(sr)) | 272 | using(XmlTextReader reader = new XmlTextReader(sr)) |
274 | { | ||
275 | reader.ProhibitDtd = true; | ||
276 | |||
277 | sceneObject = new SceneObjectGroup(SceneObjectPart.FromXml(reader)); | 273 | sceneObject = new SceneObjectGroup(SceneObjectPart.FromXml(reader)); |
278 | } | ||
279 | } | 274 | } |
280 | 275 | ||
281 | // Then deal with the rest | 276 | // Then deal with the rest |
@@ -1400,7 +1395,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1400 | value = reader.ReadElementContentAsString("Media", String.Empty); | 1395 | value = reader.ReadElementContentAsString("Media", String.Empty); |
1401 | shp.Media = PrimitiveBaseShape.MediaList.FromXml(value); | 1396 | shp.Media = PrimitiveBaseShape.MediaList.FromXml(value); |
1402 | } | 1397 | } |
1403 | catch (XmlException e) | 1398 | catch (XmlException) |
1404 | { | 1399 | { |
1405 | // There are versions of OAR files that contain unquoted XML. | 1400 | // There are versions of OAR files that contain unquoted XML. |
1406 | // ie ONE comercial fork that never wanted their oars to be read by our code | 1401 | // ie ONE comercial fork that never wanted their oars to be read by our code |
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneXmlLoader.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneXmlLoader.cs index 0ebc645..42381f6 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneXmlLoader.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneXmlLoader.cs | |||
@@ -49,7 +49,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
49 | public static void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, Vector3 loadOffset) | 49 | public static void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, Vector3 loadOffset) |
50 | { | 50 | { |
51 | XmlDocument doc = new XmlDocument(); | 51 | XmlDocument doc = new XmlDocument(); |
52 | doc.XmlResolver=null; | ||
53 | XmlNode rootNode; | 52 | XmlNode rootNode; |
54 | 53 | ||
55 | if (fileName.StartsWith("http:") || File.Exists(fileName)) | 54 | if (fileName.StartsWith("http:") || File.Exists(fileName)) |
@@ -57,7 +56,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
57 | using(XmlTextReader reader = new XmlTextReader(fileName)) | 56 | using(XmlTextReader reader = new XmlTextReader(fileName)) |
58 | { | 57 | { |
59 | reader.WhitespaceHandling = WhitespaceHandling.None; | 58 | reader.WhitespaceHandling = WhitespaceHandling.None; |
60 | reader.ProhibitDtd = true; | ||
61 | 59 | ||
62 | doc.Load(reader); | 60 | doc.Load(reader); |
63 | } | 61 | } |
diff --git a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs index 20bad94..92fd314 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs | |||
@@ -199,11 +199,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
199 | using(StringReader sr = new StringReader(data)) | 199 | using(StringReader sr = new StringReader(data)) |
200 | { | 200 | { |
201 | using(XmlTextReader reader = new XmlTextReader(sr)) | 201 | using(XmlTextReader reader = new XmlTextReader(sr)) |
202 | { | ||
203 | reader.ProhibitDtd = true; | ||
204 | |||
205 | ReadXml(reader); | 202 | ReadXml(reader); |
206 | } | ||
207 | } | 203 | } |
208 | } | 204 | } |
209 | 205 | ||