Skip to content

Commit

Permalink
fix(security): XSS with user name on profile (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Dec 11, 2021
1 parent 74b9607 commit 14e0d40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/templates/mainTemplate.js
Expand Up @@ -301,7 +301,9 @@ exports.renderHeader = function (user, content, params) {
' <div class="image" style="background-image:url(' +
(user.img || '/img/u/' + user.id) +
');"></div>',
' <strong class="username">' + user.name + '</strong>',
' <strong class="username">' +
uiSnippets.htmlEntities(user.name) +
'</strong>',
// ' <img src="/img/u/'+user.id+'" />', // /images/icon-userconfig-menu.png
' </a>',
' <div class="puce">',
Expand Down

0 comments on commit 14e0d40

Please sign in to comment.