1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Roster item nickname is now escaped for XML. SMACK-164

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4882 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2006-08-10 21:35:08 +00:00 committed by gato
parent b34152e9f5
commit 469ff4d487
2 changed files with 26 additions and 1 deletions

View file

@ -200,7 +200,7 @@ public class RosterPacket extends IQ {
StringBuilder buf = new StringBuilder();
buf.append("<item jid=\"").append(user).append("\"");
if (name != null) {
buf.append(" name=\"").append(name).append("\"");
buf.append(" name=\"").append(StringUtils.escapeForXML(name)).append("\"");
}
if (itemType != null) {
buf.append(" subscription=\"").append(itemType).append("\"");