summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp')
-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)