Utilize escapeHtml

This commit is contained in:
Chocobo1
2017-02-11 15:06:15 +08:00
committed by sledgehammer999
parent 6ca3e4f094
commit 0fb3b18a8f
4 changed files with 9 additions and 5 deletions

View File

@@ -629,6 +629,10 @@ var loadTorrentPeersData = function(){
if (response['peers']) {
for (var key in response['peers']) {
response['peers'][key]['rowId'] = key;
if (response['peers'][key]['client'])
response['peers'][key]['client'] = escapeHtml(response['peers'][key]['client']);
torrentPeersTable.updateRowData(response['peers'][key]);
}
}