1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-23 04:22:05 +01:00

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
This commit is contained in:
Alex Wenckus 2006-04-12 17:40:32 +00:00 committed by alex
parent a5b061d187
commit f70e9b894d

View file

@ -184,7 +184,7 @@ public class Presence extends Packet {
} }
buf.append(">"); buf.append(">");
if (status != null) { if (status != null) {
buf.append("<status>").append(status).append("</status>"); buf.append("<status>").append(StringUtils.escapeForXML(status)).append("</status>");
} }
if (priority != -1) { if (priority != -1) {
buf.append("<priority>").append(priority).append("</priority>"); buf.append("<priority>").append(priority).append("</priority>");