diff options
| author | Léo Lam <leo@leolam.fr> | 2021-06-02 03:38:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-02 03:38:01 +0200 |
| commit | 3ef9d5f6595f8ffac5d93314214aed735616f111 (patch) | |
| tree | b2b9a6284b925adeea3f3221791e1ca0d5273867 /Source/Core/UICommon/AutoUpdate.cpp | |
| parent | a12865570d7c0eacd77f1bed850772e5f8aea4d9 (diff) | |
| parent | 99ed43280dec1eec088bbf4242105c0953924e39 (diff) | |
Merge pull request #9749 from Dentomologist/escape_update_commit_descriptions
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 { |
