Permalink
Browse files

XSS fix in tabs (Thanks to @alvarodh5)

  • Loading branch information...
prawnsalad committed Jan 23, 2015
1 parent ee5ae35 commit 7b506f74f8586bca512b05dcfc00cd69dbff9cc2
Showing with 2 additions and 1 deletion.
  1. +2 −1 client/src/views/tabs.js
View
@@ -69,7 +69,8 @@ _kiwi.view.Tabs = Backbone.View.extend({
panelAdded: function (panel) {
// Add a tab to the panel
panel.tab = $('<li><span>' + (panel.get('title') || panel.get('name')) + '</span><div class="activity"></div></li>');
panel.tab = $('<li><span></span><div class="activity"></div></li>');
panel.tab.find('span').text(panel.get('title') || panel.get('name'));
if (panel.isServer()) {
panel.tab.addClass('server');

0 comments on commit 7b506f7

Please sign in to comment.