[xmltooling] 04/05: Add disallowDoctype to parser configuration.
Etienne Dysli Metref
edm-guest at moszumanska.debian.org
Thu Nov 16 08:00:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
edm-guest pushed a commit to branch maint-1.6
in repository xmltooling.
commit 03e781b76d9392c884645eb1baac3933cef2b7e0
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Sun Nov 12 17:45:33 2017 -0500
Add disallowDoctype to parser configuration.
---
xmltooling/util/ParserPool.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/xmltooling/util/ParserPool.cpp b/xmltooling/util/ParserPool.cpp
index bad84f7..d157074 100644
--- a/xmltooling/util/ParserPool.cpp
+++ b/xmltooling/util/ParserPool.cpp
@@ -418,6 +418,7 @@ DOMLSParser* ParserPool::createBuilder()
parser->getDomConfig()->setParameter(XMLUni::fgXercesDisableDefaultEntityResolution, true);
parser->getDomConfig()->setParameter(XMLUni::fgDOMResourceResolver, dynamic_cast<DOMLSResourceResolver*>(this));
parser->getDomConfig()->setParameter(XMLUni::fgXercesSecurityManager, m_security.get());
+ parser->getDomConfig()->setParameter(XMLUni::fgDOMDisallowDoctype, true);
return parser;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xmltooling.git
More information about the Pkg-shibboleth-devel
mailing list