mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Utilize escapeHtml
This commit is contained in:
committed by
sledgehammer999
parent
80f3b19356
commit
0356172a1d
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user