Fix stored XSS vulnerability in the serverlist

master
Sfan5 2013-08-07 09:20:36 +02:00
parent 7294f28c3a
commit 8b9bf47166
1 changed files with 1 additions and 1 deletions

View File

@ -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;