Commit 9492fa31 authored by Volker Krause's avatar Volker Krause
Browse files

Extract HTML parts based on decoded text, not raw data

This matters when a non-Unicode text encoding is applied on the MIME
rather than the HTML level.
parent 3e3bb0f8
Pipeline #158802 passed with stage
in 13 minutes and 24 seconds
......@@ -101,7 +101,7 @@ MimeTreeParser::MessagePart::Ptr ItineraryProcessor::process(MimeTreeParser::Int
engine.setContent(QVariant::fromValue<KPkPass::Pass *>(pass.get()), u"application/");
} else if (part.content()->contentType()->isHTMLText()) {
engine.setContent(part.content()->decodedText(), u"text/html");
} else if (part.content()->contentType()->mimeType() == "application/pdf"
|| part.content()->contentType()->name().endsWith(QLatin1String(".pdf"), Qt::CaseInsensitive)) {
isPdf = true;
Markdown is supported
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