Commit 2867b6f7 authored by Nate Graham's avatar Nate Graham
Browse files

Don't parse HTML in metadata fields

This is user-provided data we can't guarantee; better safe than sorry.

BUG: 442077
FIXED-IN: 21.12
parent 3f8630cf
Pipeline #79516 passed with stage
in 11 minutes and 8 seconds
......@@ -290,6 +290,7 @@ Kirigami.Page {
Label {
id: lyricLabel
text: metaDataModel.lyrics
textFormat: Text.PlainText
wrapMode: Text.WordWrap
horizontalAlignment: contentLayout.wideMode? Text.AlignLeft : Text.AlignHCenter
visible: text !== ""
......
......@@ -15,6 +15,8 @@ Kirigami.Heading {
level: 5
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
elide: Text.ElideRight
......
......@@ -198,6 +198,7 @@ FocusScope {
}
horizontalAlignment: Text.AlignLeft
color: myPalette.text
textFormat: Text.PlainText
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: !LayoutMirroring.enabled ? (Kirigami.Settings.isMobile ? 0 : Kirigami.Units.smallSpacing) : 0
......@@ -230,6 +231,7 @@ FocusScope {
visible: text.length > 0 && (Kirigami.Settings.isMobile || detailedView)
opacity: 0.6
color: myPalette.text
textFormat: Text.PlainText
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: !LayoutMirroring.enabled ? (Kirigami.Settings.isMobile ? 0 : Kirigami.Units.smallSpacing) : 0
......
......@@ -50,6 +50,7 @@ RowLayout {
sourceComponent: Label {
text: display
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
elide: Text.ElideRight
wrapMode: Text.WordWrap
......
......@@ -128,7 +128,7 @@ BasePlayListDelegate {
return trackNumberString
}
}
textFormat: Text.PlainText
font.weight: (isPlaying ? Font.Bold : Font.Normal)
visible: isValid && !playIcon.visible
......
......@@ -142,6 +142,7 @@ BasePlayerControl {
Label {
id: mainLabel
text: title
textFormat: Text.PlainText
wrapMode: Text.Wrap
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
Layout.fillWidth: true
......@@ -159,6 +160,7 @@ BasePlayerControl {
Label {
id: authorLabel
text: artist
textFormat: Text.PlainText
wrapMode: Text.Wrap
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
Layout.fillWidth: true
......
......@@ -112,6 +112,7 @@ BasePlayListDelegate {
id: mainLabelDetailed
text: title
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
color: myPalette.text
......@@ -137,6 +138,7 @@ BasePlayListDelegate {
}
return labelText;
}
textFormat: Text.PlainText
horizontalAlignment: Text.AlignLeft
visible: text.length > 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment