diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-04 15:16:54 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-04 15:16:54 +0300 |
commit | 908ac813e0f96126a643851e99379956faa08cda (patch) | |
tree | 5dd60c51fd35b1163b5c1401f7e478e59186f04d /launcher/modplatform/flame | |
parent | fa7cfc77d8b723a53577734a0a3c76df7d9dc6d7 (diff) | |
download | PrismLauncher-908ac813e0f96126a643851e99379956faa08cda.tar.gz PrismLauncher-908ac813e0f96126a643851e99379956faa08cda.tar.bz2 PrismLauncher-908ac813e0f96126a643851e99379956faa08cda.zip |
escaped modlist inner html
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/flame')
-rw-r--r-- | launcher/modplatform/flame/FlamePackExportTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/modplatform/flame/FlamePackExportTask.cpp b/launcher/modplatform/flame/FlamePackExportTask.cpp index b8edf7df..ac0da214 100644 --- a/launcher/modplatform/flame/FlamePackExportTask.cpp +++ b/launcher/modplatform/flame/FlamePackExportTask.cpp @@ -362,9 +362,9 @@ void FlamePackExportTask::buildZip() for (auto mod : resolvedFiles) { if (mod.isMod) { content += QString(TEMPLATE) - .replace("{name}", mod.name) - .replace("{url}", ModPlatform::getMetaURL(ModPlatform::ResourceProvider::FLAME, mod.addonId)) - .replace("{authors}", !mod.authors.isEmpty() ? QString(" (by %1)").arg(mod.authors) : ""); + .replace("{name}", mod.name.toHtmlEscaped()) + .replace("{url}", ModPlatform::getMetaURL(ModPlatform::ResourceProvider::FLAME, mod.addonId).toHtmlEscaped()) + .replace("{authors}", !mod.authors.isEmpty() ? QString(" (by %1)").arg(mod.authors).toHtmlEscaped() : ""); } } content = "<ul>" + content + "</ul>"; |