percent encode all urls opening in external browsers
This commit is contained in:
parent
4286b7246e
commit
61ca7011f0
|
@ -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);
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue