From 7c599bdef4e4c7cd467a9fe316aa71fa6647c369 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 15 Oct 2021 11:18:39 +0200 Subject: [PATCH] fix regex parsing of content-disposition header --- src/librssguard/network-web/downloadmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librssguard/network-web/downloadmanager.cpp b/src/librssguard/network-web/downloadmanager.cpp index 52e06864c..df85aa6f0 100644 --- a/src/librssguard/network-web/downloadmanager.cpp +++ b/src/librssguard/network-web/downloadmanager.cpp @@ -141,7 +141,7 @@ QString DownloadItem::saveFileName(const QString& directory) const { if (m_reply->hasRawHeader("Content-Disposition")) { QString value = QLatin1String(m_reply->rawHeader("Content-Disposition")); - QRegularExpression exp(QSL(".*filename=?\"([^\"]+)\"?")); + QRegularExpression exp(QSL(".*filename\\s*=\\s*\"?([^\"]+)\"?")); QRegularExpressionMatch match = exp.match(value); if (match.isValid()) {