summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-11-25 10:20:13 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-11-25 10:20:41 -0800
commit3b01b4143c59d3da9839638eb8cc7036861401fb (patch)
treee6c0de4d773b1db859e7b1f7eeaba68af0a28ba3
parentcee188d9a376bcb480785acb3e1ebbe921cc6c9c (diff)
downloadDotNetOpenAuth-origin/v4.0.zip
DotNetOpenAuth-origin/v4.0.tar.gz
DotNetOpenAuth-origin/v4.0.tar.bz2
Applies fix for #209 to one more entrypoint for parsing XML that was missed initially.origin/v4.0
-rw-r--r--src/DotNetOpenAuth.OpenId/Xrds/XrdsDocument.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.OpenId/Xrds/XrdsDocument.cs b/src/DotNetOpenAuth.OpenId/Xrds/XrdsDocument.cs
index 0e1ecc1..a0c59c4 100644
--- a/src/DotNetOpenAuth.OpenId/Xrds/XrdsDocument.cs
+++ b/src/DotNetOpenAuth.OpenId/Xrds/XrdsDocument.cs
@@ -54,7 +54,7 @@ namespace DotNetOpenAuth.Xrds {
/// <param name="xml">The text that is the XRDS document.</param>
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Fixing would decrease readability, and not likely avoid any finalizer on a StringReader anyway.")]
public XrdsDocument(string xml)
- : this(new XPathDocument(new StringReader(xml)).CreateNavigator()) { }
+ : this(new XPathDocument(XmlReader.Create(new StringReader(xml), MessagingUtilities.CreateUntrustedXmlReaderSettings())).CreateNavigator()) { }
/// <summary>
/// Gets the XRD child elements of the document.