Process XML with XmlReaderSettings. Should mitigate #89, LLSD-XML does not specify DTD so any DTD should be ignored not parsed.

This commit is contained in:
Cinder Roxley
2024-06-28 20:22:46 -05:00
parent c94f9d1a0e
commit f2f5f54abc
2 changed files with 10 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ namespace OpenMetaverse.StructuredData
IgnoreProcessingInstructions = false,
DtdProcessing = DtdProcessing.Ignore
};
using (XmlReader xrd = XmlReader.Create(xmlStream))
using (XmlReader xrd = XmlReader.Create(xmlStream, settings))
{
return DeserializeLLSDXml(xrd);
}