mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 16:33:35 -03:00
Merge pull request #7196 from thornbill/role-xss
Fix xss for person roles Credit for discovery to Carlos García-Olalla Olivera
This commit is contained in:
@@ -970,7 +970,7 @@ function populatePeople(context, people) {
|
||||
html += '</div>';
|
||||
|
||||
if (person.Role && person.Role !== lastType) {
|
||||
html += '<div class="secondary">' + person.Role + '</div>';
|
||||
html += '<div class="secondary">' + escapeHtml(person.Role) + '</div>';
|
||||
} else {
|
||||
html += '<div class="secondary">' + globalize.translate(person.Type) + '</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user