mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-30 17:15:01 +01:00
Fix percent encoding in enclosures.
This commit is contained in:
parent
f95ab32e24
commit
04559c5b09
@ -108,6 +108,8 @@ void WebViewer::loadMessages(const QList<Message>& messages, RootItem* root) {
|
|||||||
enc_url = enclosure.m_url;
|
enc_url = enclosure.m_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enc_url = QUrl::fromPercentEncoding(enc_url.toUtf8());
|
||||||
|
|
||||||
enclosures += skin.m_enclosureMarkup.arg(enc_url,
|
enclosures += skin.m_enclosureMarkup.arg(enc_url,
|
||||||
tr("Attachment"), enclosure.m_mimeType);
|
tr("Attachment"), enclosure.m_mimeType);
|
||||||
|
|
||||||
|
@ -83,7 +83,12 @@ Application::Application(const QString& id, int& argc, char** argv)
|
|||||||
|
|
||||||
connect(QWebEngineProfile::defaultProfile(), &QWebEngineProfile::downloadRequested, this, &Application::downloadRequested);
|
connect(QWebEngineProfile::defaultProfile(), &QWebEngineProfile::downloadRequested, this, &Application::downloadRequested);
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x050D00 // Qt >= 5.13.0
|
||||||
|
QWebEngineProfile::defaultProfile()->setUrlRequestInterceptor(m_urlInterceptor);
|
||||||
|
#else
|
||||||
QWebEngineProfile::defaultProfile()->setRequestInterceptor(m_urlInterceptor);
|
QWebEngineProfile::defaultProfile()->setRequestInterceptor(m_urlInterceptor);
|
||||||
|
#endif
|
||||||
|
|
||||||
m_urlInterceptor->loadSettings();
|
m_urlInterceptor->loadSettings();
|
||||||
|
|
||||||
QWebEngineProfile::defaultProfile()->installUrlSchemeHandler(QByteArray(APP_LOW_NAME),
|
QWebEngineProfile::defaultProfile()->installUrlSchemeHandler(QByteArray(APP_LOW_NAME),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user