diff --git a/src/librssguard/network-web/webfactory.cpp b/src/librssguard/network-web/webfactory.cpp index 152437ad3..80367a69e 100644 --- a/src/librssguard/network-web/webfactory.cpp +++ b/src/librssguard/network-web/webfactory.cpp @@ -119,8 +119,8 @@ void WebFactory::loadCustomCss(const QString user_styles_path) { } #endif -bool WebFactory::openUrlInExternalBrowser(const QString& url) const { - QString my_url = QUrl::toPercentEncoding(url); +bool WebFactory::openUrlInExternalBrowser(const QUrl& url) const { + QString my_url = url.toString(QUrl::ComponentFormattingOption::FullyEncoded); qDebugNN << LOGSEC_NETWORK << "We are trying to open URL" << QUOTE_W_SPACE_DOT(my_url); diff --git a/src/librssguard/network-web/webfactory.h b/src/librssguard/network-web/webfactory.h index 07549afad..eaa344b0d 100644 --- a/src/librssguard/network-web/webfactory.h +++ b/src/librssguard/network-web/webfactory.h @@ -67,7 +67,7 @@ class WebFactory : public QObject { void cleanupCache(); #endif - bool openUrlInExternalBrowser(const QString& url) const; + bool openUrlInExternalBrowser(const QUrl& url) const; #if defined(NO_LITE) private slots: