projects
/
xmppchat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3cd1748
)
Escape nicknames
master
author
Florian Zeitz
<florob@babelmonkeys.de>
Wed, 21 Nov 2012 22:35:55 +0000
(23:35 +0100)
committer
Florian Zeitz
<florob@babelmonkeys.de>
Wed, 21 Nov 2012 22:35:55 +0000
(23:35 +0100)
js/main.js
patch
|
blob
|
history
diff --git
a/js/main.js
b/js/main.js
index 9588826df689e99d1a9086f20d5b8d7963bea319..8d1d47638cbe6c27acdf14ad16c11fcc3004c77a 100644
(file)
--- a/
js/main.js
+++ b/
js/main.js
@@
-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);