From: Sfan5 Date: Wed, 7 Aug 2013 07:20:36 +0000 (+0200) Subject: Fix stored XSS vulnerability in the serverlist X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=8b9bf47166a9527a5b547200160a43f2924f5ab5;p=zefram%2Fminetest%2Fminetest_engine.git Fix stored XSS vulnerability in the serverlist --- diff --git a/util/master/list.js b/util/master/list.js index 1c9547fb..a17458fb 100644 --- a/util/master/list.js +++ b/util/master/list.js @@ -48,7 +48,7 @@ function success(r) { if (/:/.test(s.address)) s.address = '[' + s.address + ']'; h += ''; h += '' + e(s.address) + (s.port != 30000 ? (':' + e(s.port)) : '') + ''; - h += '' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + ''; + h += '' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + e(s.clients_top) : '') + ''; var mods = 0; if (s.mods && jQuery.isArray(s.mods)) { mods = s.mods.length;