mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
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…
x
Reference in New Issue
Block a user