summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-12-02 12:39:42 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-12-02 13:15:51 +0100
commit050cf1fd606a04c4734d66e996a52a907001bd12 (patch)
tree1860d312d98d3ad69458a428556849733eb77c85
parentd6832fbcc98557952387f3ce2899bbebacd7c204 (diff)
downloadbiboumi-050cf1fd606a04c4734d66e996a52a907001bd12.tar.gz
biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.tar.bz2
biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.tar.xz
biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.zip
xml-escape the tail in an XmlNode
-rw-r--r--src/xmpp/xmpp_stanza.cpp4
1 files changed, 2 insertions, 2 deletions
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)