From f70e9b894d2a08de701f3a49ab654c4e7df2101a Mon Sep 17 00:00:00 2001 From: Alex Wenckus Date: Wed, 12 Apr 2006 17:40:32 +0000 Subject: [PATCH] Illegal XML characters in presence status would crash connection. SMACK-131 git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3761 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/packet/Presence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/packet/Presence.java b/source/org/jivesoftware/smack/packet/Presence.java index 52e17d0f0..ebc20565b 100644 --- a/source/org/jivesoftware/smack/packet/Presence.java +++ b/source/org/jivesoftware/smack/packet/Presence.java @@ -184,7 +184,7 @@ public class Presence extends Packet { } buf.append(">"); if (status != null) { - buf.append("").append(status).append(""); + buf.append("").append(StringUtils.escapeForXML(status)).append(""); } if (priority != -1) { buf.append("").append(priority).append("");