mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Utilize escapeHtml
This commit is contained in:
committed by
sledgehammer999
parent
6ca3e4f094
commit
0fb3b18a8f
@@ -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