kio: do not convert the element attribute to latin1 in KBookmark::url()

that will only convert it back to QString in the KUrl constructor but it
will not be from UTF-8 bytes - the attribute string is converted to latin1,
duh

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-05 05:47:03 +03:00
parent 74dc070da5
commit b0d0a4ee18

View file

@ -319,7 +319,7 @@ void KBookmark::setFullText(const QString &fullText)
KUrl KBookmark::url() const
{
return KUrl(element.attribute("href").toLatin1()); // Decodes it from utf8
return KUrl(element.attribute("href")); // Decodes it from utf8
}
void KBookmark::setUrl(const KUrl &url)