]> git.babelmonkeys.de Git - xmppchat.git/commitdiff
Escape nicknames master
authorFlorian Zeitz <florob@babelmonkeys.de>
Wed, 21 Nov 2012 22:35:55 +0000 (23:35 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Wed, 21 Nov 2012 22:35:55 +0000 (23:35 +0100)
js/main.js

index 9588826df689e99d1a9086f20d5b8d7963bea319..8d1d47638cbe6c27acdf14ad16c11fcc3004c77a 100644 (file)
@@ -99,7 +99,7 @@ function handlePresence(presence) {
                return true;
        }
        roster_list = document.getElementById('roster_list');
                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);
        type = presence.getAttribute('type');
        if (type == 'unavailable') {
                element = document.getElementById(nick);