mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-29 08:39:41 +01:00
Sanitize propeerly all Urls for opening in ext. browser.
This commit is contained in:
parent
2264298c41
commit
0af0c7ab03
@ -313,7 +313,9 @@ void MessagesView::loadItem(RootItem* item) {
|
||||
|
||||
void MessagesView::openSelectedSourceMessagesExternally() {
|
||||
foreach (const QModelIndex& index, selectionModel()->selectedRows()) {
|
||||
const QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row()).m_url;
|
||||
QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row())
|
||||
.m_url
|
||||
.replace(QRegularExpression("[\\t\\n]"), QString());
|
||||
|
||||
if (!qApp->web()->openUrlInExternalBrowser(link)) {
|
||||
qApp->showGuiMessage(tr("Problem with starting external web browser"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user