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
parent 71af105a89
commit d379fa3035
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
3 changed files with 16 additions and 16 deletions

View file

@ -441,8 +441,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);
}
}