aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaweldomas <pawel.domas@jitsi.org>2016-10-05 13:03:18 -0500
committerpaweldomas <pawel.domas@jitsi.org>2016-10-05 13:03:18 -0500
commit94db8054a6f7de9d7af5dcc7a51273926e5427f9 (patch)
treea42a6e0c434b3f24ee8b1acb48fd75ccf737b4db
parentef1af9c72cc4f2001971cfd7c29b948f8137e0ea (diff)
downloadjitsi-94db8054a6f7de9d7af5dcc7a51273926e5427f9.zip
jitsi-94db8054a6f7de9d7af5dcc7a51273926e5427f9.tar.gz
jitsi-94db8054a6f7de9d7af5dcc7a51273926e5427f9.tar.bz2
Escape to XML text fields in the JibriIq
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/extensions/jibri/JibriIq.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/extensions/jibri/JibriIq.java b/src/net/java/sip/communicator/impl/protocol/jabber/extensions/jibri/JibriIq.java
index 0e14d96..8b964af 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/extensions/jibri/JibriIq.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/extensions/jibri/JibriIq.java
@@ -198,8 +198,11 @@ public class JibriIq
StringBuilder xml, String attrName, String attr)
{
if (!StringUtils.isNullOrEmpty(attr))
+ {
+ attr = org.jivesoftware.smack.util.StringUtils.escapeForXML(attr);
xml.append(attrName).append("='")
.append(attr).append("' ");
+ }
}
/**