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. tool.
This commit is contained in:
parent
0af0c7ab03
commit
56d5b707d0
@ -527,7 +527,9 @@ void MessagesView::openSelectedMessagesWithExternalTool() {
|
||||
auto tool = sndr->data().value<ExternalTool>();
|
||||
|
||||
foreach (const QModelIndex& index, selectionModel()->selectedRows()) {
|
||||
const QString& link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row()).m_url;
|
||||
const QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row())
|
||||
.m_url
|
||||
.replace(QRegularExpression("[\\t\\n]"), QString());
|
||||
|
||||
if (!link.isEmpty()) {
|
||||
if (!QProcess::startDetached(tool.executable(), QStringList() << tool.parameters() << link)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user