fix: 修复潜在的 XXE 漏洞风险

This commit is contained in:
Fu Diwei 2021-08-17 16:26:37 +08:00
parent 0e2142cd2d
commit b9f8167fee
2 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Utilities
try
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.XmlResolver = null;
xmlDoc.LoadXml(xml);
XmlNode? xmlRoot = xmlDoc.FirstChild;

View File

@ -273,6 +273,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Utilities
try
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.XmlResolver = null;
xmlDoc.LoadXml(xml);
XmlNode? xmlRoot = xmlDoc.FirstChild;