Skip to content

Commit 3a293d6

Browse files
authored
Merge pull request BlogEngine#207 from irbishop/syndication-xxe
Set XmlResolver syndication.axd
2 parents d152510 + 4869ca9 commit 3a293d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BlogEngine/BlogEngine.Core/Web/HttpHandlers/SyndicationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private static List<IPublishable> GenerateItemList(HttpContext context)
185185
client.Encoding = Encoding.Default;
186186
using (var stream = client.OpenRead(context.Request.QueryString["apml"]))
187187
{
188-
var doc = new XmlDocument();
188+
var doc = new XmlDocument() { XmlResolver = null };
189189
if (stream != null)
190190
{
191191
doc.Load(stream);
@@ -397,4 +397,4 @@ private static void StopServing(HttpContext context)
397397

398398
#endregion
399399
}
400-
}
400+
}

0 commit comments

Comments
 (0)