diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-11-25 10:20:13 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-11-25 10:20:41 -0800 |
commit | 3b01b4143c59d3da9839638eb8cc7036861401fb (patch) | |
tree | e6c0de4d773b1db859e7b1f7eeaba68af0a28ba3 | |
parent | cee188d9a376bcb480785acb3e1ebbe921cc6c9c (diff) | |
download | DotNetOpenAuth-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.cs | 2 |
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. |