mirror of https://github.com/zlatinb/muwire
Sanitize more components
parent
9a78157013
commit
d767569a36
|
@ -22,6 +22,7 @@ class PathTreeRenderer extends DefaultTreeCellRenderer {
|
||||||
|
|
||||||
def defaultRenderer = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus)
|
def defaultRenderer = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus)
|
||||||
if (userObject == null || userObject instanceof String) {
|
if (userObject == null || userObject instanceof String) {
|
||||||
|
defaultRenderer.setText(HTMLSanitizer.sanitize(userObject?.toString()))
|
||||||
return defaultRenderer
|
return defaultRenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue