From: Florian Zeitz Date: Wed, 21 Nov 2012 22:35:55 +0000 (+0100) Subject: Escape nicknames X-Git-Url: https://git.babelmonkeys.de/?a=commitdiff_plain;h=HEAD;p=xmppchat.git Escape nicknames --- diff --git a/js/main.js b/js/main.js index 9588826..8d1d476 100644 --- a/js/main.js +++ b/js/main.js @@ -99,7 +99,7 @@ function handlePresence(presence) { return true; } roster_list = document.getElementById('roster_list'); - nick = Strophe.getResourceFromJid(presence.getAttribute('from')); + nick = Strophe.xmlescape(Strophe.getResourceFromJid(presence.getAttribute('from'))); type = presence.getAttribute('type'); if (type == 'unavailable') { element = document.getElementById(nick);