[xmltooling] 24/24: CPPXT-127 - Block entity reference nodes during unmarshalling.
Etienne Dysli Metref
edm-guest at moszumanska.debian.org
Fri Jan 12 15:53:59 UTC 2018
This is an automated email from the git hooks/post-receive script.
edm-guest pushed a commit to branch master
in repository xmltooling.
commit a02314e96d6746d29c5697b504d37f2e04a6e6cd
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Wed Jan 10 12:20:07 2018 -0500
CPPXT-127 - Block entity reference nodes during unmarshalling.
https://issues.shibboleth.net/jira/browse/CPPXT-127
---
xmltooling/io/AbstractXMLObjectUnmarshaller.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp
index ae2709e..487348e 100644
--- a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp
+++ b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp
@@ -206,6 +206,8 @@ void AbstractXMLObjectUnmarshaller::unmarshallContent(const DOMElement* domEleme
else if (childNode->getNodeType() == DOMNode::TEXT_NODE || childNode->getNodeType() == DOMNode::CDATA_SECTION_NODE) {
m_log.debug("processing text content at position (%d)", position);
setTextContent(childNode->getNodeValue(), position);
+ } else if (childNode->getNodeType() == DOMNode::ENTITY_REFERENCE_NODE || childNode->getNodeType() == DOMNode::ENTITY_NODE) {
+ throw UnmarshallingException("Unmarshaller found Entity/Reference node.");
}
childNode = childNode->getNextSibling();
--
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