From 050cf1fd606a04c4734d66e996a52a907001bd12 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 2 Dec 2013 12:39:42 +0100 Subject: xml-escape the tail in an XmlNode --- src/xmpp/xmpp_stanza.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmpp/xmpp_stanza.cpp') diff --git a/src/xmpp/xmpp_stanza.cpp b/src/xmpp/xmpp_stanza.cpp index 85bd6b5..5af53e1 100644 --- a/src/xmpp/xmpp_stanza.cpp +++ b/src/xmpp/xmpp_stanza.cpp @@ -114,12 +114,12 @@ void XmlNode::set_attribute(const std::string& name, const std::string& value) void XmlNode::set_tail(const std::string& data) { - this->tail = data; + this->tail = xml_escape(data); } void XmlNode::add_to_tail(const std::string& data) { - this->tail += data; + this->tail += xml_escape(data); } void XmlNode::set_inner(const std::string& data) -- cgit v1.2.3