Browse Source

Escape HTML in comment field

adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
bab953298b
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/addnewtorrentdialog.cpp

2
src/gui/addnewtorrentdialog.cpp

@ -602,7 +602,7 @@ void AddNewTorrentDialog::setupTreeview() @@ -602,7 +602,7 @@ void AddNewTorrentDialog::setupTreeview()
setWindowTitle(m_torrentInfo.name());
// Set torrent information
m_ui->labelCommentData->setText(Utils::Misc::parseHtmlLinks(m_torrentInfo.comment()));
m_ui->labelCommentData->setText(Utils::Misc::parseHtmlLinks(m_torrentInfo.comment().toHtmlEscaped()));
m_ui->labelDateData->setText(!m_torrentInfo.creationDate().isNull() ? m_torrentInfo.creationDate().toString(Qt::DefaultLocaleShortDate) : tr("Not available"));
// Prepare content tree

Loading…
Cancel
Save