diff options
| author | Dentomologist <dentomologist@gmail.com> | 2021-05-24 09:44:21 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2021-06-01 17:22:19 -0700 |
| commit | 99ed43280dec1eec088bbf4242105c0953924e39 (patch) | |
| tree | b2b9a6284b925adeea3f3221791e1ca0d5273867 /Source/Core/UICommon/AutoUpdate.cpp | |
| parent | a12865570d7c0eacd77f1bed850772e5f8aea4d9 (diff) | |
Updater: Escape HTML characters in commit descriptions
Diffstat (limited to 'Source/Core/UICommon/AutoUpdate.cpp')
| -rw-r--r-- | Source/Core/UICommon/AutoUpdate.cpp | 6 |
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> — " + - ver_obj["short_descr"].get<std::string>(); + ver_obj["author"].get<std::string>() + "</a> — " + escaped_description; } else { |
