summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/AutoUpdate.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2021-05-24 09:44:21 -0700
committerDentomologist <dentomologist@gmail.com>2021-06-01 17:22:19 -0700
commit99ed43280dec1eec088bbf4242105c0953924e39 (patch)
treeb2b9a6284b925adeea3f3221791e1ca0d5273867 /Source/Core/UICommon/AutoUpdate.cpp
parenta12865570d7c0eacd77f1bed850772e5f8aea4d9 (diff)
Updater: Escape HTML characters in commit descriptions
Diffstat (limited to 'Source/Core/UICommon/AutoUpdate.cpp')
-rw-r--r--Source/Core/UICommon/AutoUpdate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/UICommon/AutoUpdate.cpp b/Source/Core/UICommon/AutoUpdate.cpp
index 5808d3ac2e..f5898f592b 100644
--- a/Source/Core/UICommon/AutoUpdate.cpp
+++ b/Source/Core/UICommon/AutoUpdate.cpp
@@ -109,10 +109,10 @@ std::string GenerateChangelog(const picojson::array& versions)
{
changelog += ver_obj["shortrev"].get<std::string>();
}
-
+ const std::string escaped_description =
+ GetEscapedHtml(ver_obj["short_descr"].get<std::string>());
changelog += " by <a href = \"" + ver_obj["author_url"].get<std::string>() + "\">" +
- ver_obj["author"].get<std::string>() + "</a> &mdash; " +
- ver_obj["short_descr"].get<std::string>();
+ ver_obj["author"].get<std::string>() + "</a> &mdash; " + escaped_description;
}
else
{