Browse Source

Merge pull request #396 from isymchych/fix-username-xss

Escape html from username.
j8
yanas 10 years ago
parent
commit
a3264ce6b7
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      modules/UI/videolayout/LocalVideo.js

+ 2
- 0
modules/UI/videolayout/LocalVideo.js View File

@@ -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…
Cancel
Save