[cpp-xmltooling] branch maint-1.6 updated: CPPXT-127 - Block entity reference nodes during unmarshalling.
Scott Cantor
cantor.2 at osu.edu
Thu Jan 11 10:57:02 EST 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-1.6
in repository cpp-xmltooling.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=f8eeeb9076ffbff54cbf819c6c92b25c40db52ae
The following commit(s) were added to refs/heads/maint-1.6 by this push:
new f8eeeb9 CPPXT-127 - Block entity reference nodes during unmarshalling.
f8eeeb9 is described below
commit f8eeeb9076ffbff54cbf819c6c92b25c40db52ae
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: 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();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list