From 9dbac137ef235915d25142c4285e68925528eccc Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Thu, 21 Feb 2019 19:32:32 -0600 Subject: Limit the download file description to 4096 characters The description is limited to 255 characters on the Nexus so this is mostly protecting against invalid data. --- src/downloadlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp index 922de748..765ee646 100644 --- a/src/downloadlist.cpp +++ b/src/downloadlist.cpp @@ -133,7 +133,7 @@ QVariant DownloadList::data(const QModelIndex &index, int role) const text += tr("Information missing, please select \"Query Info\" from the context menu to re-retrieve."); } else { const MOBase::ModRepositoryFileInfo *info = m_Manager->getFileInfo(index.row()); - return QString("%1 (ID %2) %3
%4").arg(info->modName).arg(m_Manager->getModID(index.row())).arg(info->version.canonicalString()).arg(info->description); + return QString("%1 (ID %2) %3
%4").arg(info->modName).arg(m_Manager->getModID(index.row())).arg(info->version.canonicalString()).arg(info->description.chopped(4096)); } return text; } -- cgit v1.3.1