Prevent opening local files if web page is expected

This commit is contained in:
Vladimir Golovnev (Glassez)
2025-06-23 13:14:37 +03:00
committed by sledgehammer999
parent 22df0b45c5
commit ad68813fe8
3 changed files with 16 additions and 16 deletions

View File

@@ -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);
}
}