diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-12-02 12:39:42 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-12-02 13:15:51 +0100 |
commit | 050cf1fd606a04c4734d66e996a52a907001bd12 (patch) | |
tree | 1860d312d98d3ad69458a428556849733eb77c85 /src/xmpp | |
parent | d6832fbcc98557952387f3ce2899bbebacd7c204 (diff) | |
download | biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.tar.gz biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.tar.bz2 biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.tar.xz biboumi-050cf1fd606a04c4734d66e996a52a907001bd12.zip |
xml-escape the tail in an XmlNode
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/xmpp_stanza.cpp | 4 |
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) |