Skip to content

Commit

Permalink
Fix stored XSS vulnerability in the serverlist
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Aug 7, 2013
1 parent 7294f28 commit 8b9bf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/master/list.js
Expand Up @@ -48,7 +48,7 @@ function success(r) {
if (/:/.test(s.address)) s.address = '[' + s.address + ']';
h += '<tr class="mts_row">';
h += '<td class="mts_address">' + e(s.address) + (s.port != 30000 ? (':' + e(s.port)) : '') + '</td>';
h += '<td class="mts_clients">' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + '</td>';
h += '<td class="mts_clients">' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + e(s.clients_top) : '') + '</td>';
var mods = 0;
if (s.mods && jQuery.isArray(s.mods)) {
mods = s.mods.length;
Expand Down

0 comments on commit 8b9bf47

Please sign in to comment.