mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
Prevent opening local files if web page is expected
This commit is contained in:
committed by
sledgehammer999
parent
22df0b45c5
commit
ad68813fe8
@@ -423,8 +423,8 @@ void RSSWidget::openSelectedArticlesUrls()
|
||||
// Mark as read
|
||||
article->markAsRead();
|
||||
|
||||
if (!article->link().isEmpty())
|
||||
QDesktopServices::openUrl(QUrl(article->link()));
|
||||
if (const QUrl articleLink {article->link()}; !articleLink.isEmpty() && !articleLink.isLocalFile())
|
||||
QDesktopServices::openUrl(articleLink);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user