Ensure any html in changelog is escaped before displaying

This commit is contained in:
Nick O'Leary
2021-06-29 13:58:24 +01:00
parent 977dfe700b
commit fa4b7a1a69
2 changed files with 3 additions and 1 deletions

View File

@@ -540,6 +540,8 @@ var RED = (function() {
function showAbout() {
$.get('red/about', function(data) {
// data will be strictly markdown. Any HTML should be escaped.
data = RED.utils.sanitize(data);
var aboutHeader = '<div style="text-align:center;">'+
'<img width="50px" src="red/images/node-red-icon.svg" />'+
'</div>';