mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-15 03:52: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:
parent
a5b061d187
commit
f70e9b894d
1 changed files with 1 additions and 1 deletions
|
@ -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>");
|
||||||
|
|
Loading…
Reference in a new issue