mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Utilize escapeHtml
This commit is contained in:
parent
6ca3e4f094
commit
0fb3b18a8f
4 changed files with 9 additions and 5 deletions
|
@ -130,7 +130,7 @@ var loadTorrentData = function() {
|
|||
temp = "QBT_TR(Unknown)QBT_TR";
|
||||
$('pieces').set('html', temp);
|
||||
|
||||
$('created_by').set('html', data.created_by);
|
||||
$('created_by').set('html', escapeHtml(data.created_by));
|
||||
if (data.addition_date != -1)
|
||||
temp = new Date(data.addition_date * 1000).toLocaleString();
|
||||
else
|
||||
|
@ -152,7 +152,7 @@ var loadTorrentData = function() {
|
|||
|
||||
$('save_path').set('html', data.save_path);
|
||||
|
||||
$('comment').set('html', parseHtmlLinks(data.comment));
|
||||
$('comment').set('html', parseHtmlLinks(escapeHtml(data.comment)));
|
||||
}
|
||||
else {
|
||||
clearData();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue