Sanitize more components

auto-update
Zlatin Balevsky 2021-10-19 20:09:04 +01:00
parent 9a78157013
commit d767569a36
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class PathTreeRenderer extends DefaultTreeCellRenderer {
def defaultRenderer = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus)
if (userObject == null || userObject instanceof String) {
defaultRenderer.setText(HTMLSanitizer.sanitize(userObject?.toString()))
return defaultRenderer
}