Selaa lähdekoodia

escape html from username

j8
isymchych 10 vuotta sitten
vanhempi
commit
fdc2ecd86f
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      modules/UI/videolayout/LocalVideo.js

+ 2
- 0
modules/UI/videolayout/LocalVideo.js Näytä tiedosto

@@ -130,6 +130,8 @@ LocalVideo.prototype.setDisplayName = function(displayName, key) {
130 130
 };
131 131
 
132 132
 LocalVideo.prototype.inputDisplayNameHandler = function (name) {
133
+    name = UIUtil.escapeHtml(name);
134
+
133 135
     NicknameHandler.setNickname(name);
134 136
 
135 137
     var localDisplayName = $('#localDisplayName');

Loading…
Peruuta
Tallenna