From d4b72eb384480d579be94885d7419414c0e6c687 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Wed, 21 Nov 2012 23:35:55 +0100 Subject: [PATCH] Escape nicknames --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5