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:21:44 -0800 |
commit | 6e3e1b5890a441b37f5ef9d5cfe64290bf7a64d5 (patch) | |
tree | 76e7c614a702dd3e35405b766ab4a8b566b6359a /src/DotNetOpenAuth.OpenId | |
parent | 4f95b6f05aaa8abe8732ec8c945719b43ae5f8b4 (diff) | |
download | DotNetOpenAuth-origin/v5.0.zip DotNetOpenAuth-origin/v5.0.tar.gz DotNetOpenAuth-origin/v5.0.tar.bz2 |
Applies fix for #209 to one more entrypoint for parsing XML that was missed initially.origin/v5.0
Diffstat (limited to 'src/DotNetOpenAuth.OpenId')
-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. |