Merge branch 'master' of https://github.com/microsoft/Dynamics365FO-AppChecker
This commit is contained in:
Коммит
55e3713c4f
|
@ -79,7 +79,11 @@ namespace Wpf.Controls
|
|||
public static object CloneElement(object elementToClone)
|
||||
{
|
||||
string xaml = XamlWriter.Save(elementToClone);
|
||||
return XamlReader.Load(new XmlTextReader(new StringReader(xaml)));
|
||||
return XamlReader.Load(new XmlTextReader(new StringReader(xaml))
|
||||
{
|
||||
XmlResolver = null,
|
||||
DtdProcessing = DtdProcessing.Prohibit
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -71,6 +71,9 @@ namespace XppReasoningWpf
|
|||
|
||||
using (var xshd_reader = new XmlTextReader(syntaxModeStream))
|
||||
{
|
||||
xshd_reader.DtdProcessing = DtdProcessing.Prohibit;
|
||||
xshd_reader.XmlResolver = null;
|
||||
|
||||
syntaxModeStream = null;
|
||||
return ICSharpCode.AvalonEdit.Highlighting.Xshd.HighlightingLoader.Load(xshd_reader, HighlightingManager.Instance);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче