mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 11:04:26 +00:00
Merge pull request #12 from quamotion/fixes/dtd-processing
Ignore DTD when reading XML PList documents
This commit is contained in:
@@ -72,7 +72,14 @@ namespace Claunia.PropertyList
|
||||
public static NSObject Parse(Stream str)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.Load(str);
|
||||
|
||||
XmlReaderSettings settings = new XmlReaderSettings();
|
||||
settings.DtdProcessing = DtdProcessing.Ignore;
|
||||
|
||||
using (XmlReader reader = XmlReader.Create(str, settings))
|
||||
{
|
||||
doc.Load(reader);
|
||||
}
|
||||
|
||||
return ParseDocument(doc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user