fix: XSS filter channel names in case a bad one had been submitted
This commit is contained in:
parent
dbc1d26966
commit
44b1d55ebb
|
@ -64,7 +64,9 @@ Rectangle {
|
|||
|
||||
StyledText {
|
||||
id: contactInfo
|
||||
text: wrapper.chatType !== Constants.chatTypePublic ? Emoji.parse(Utils.removeStatusEns(wrapper.name), "26x26") : "#" + wrapper.name
|
||||
text: wrapper.chatType !== Constants.chatTypePublic ?
|
||||
Emoji.parse(Utils.removeStatusEns(Utils.filterXSS(wrapper.name)), "26x26") :
|
||||
"#" + Utils.filterXSS(wrapper.name)
|
||||
anchors.right: contactTime.left
|
||||
anchors.rightMargin: Style.current.smallPadding
|
||||
elide: Text.ElideRight
|
||||
|
|
Loading…
Reference in New Issue