mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 04:08:05 -06:00
Revert "Use QRegularExpression instead of deprecated QRegExp"
Related to #14611
This reverts commit 3b748178c2.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include <QMimeDatabase>
|
||||
#include <QMimeType>
|
||||
#include <QNetworkCookie>
|
||||
#include <QRegularExpression>
|
||||
#include <QRegExp>
|
||||
#include <QUrl>
|
||||
|
||||
#include "base/algorithm.h"
|
||||
@@ -693,7 +693,7 @@ bool WebApplication::validateHostHeader(const QStringList &domains) const
|
||||
// try matching host header with domain list
|
||||
for (const auto &domain : domains)
|
||||
{
|
||||
const QRegularExpression domainRegex {Utils::String::wildcardToRegexPattern(domain), QRegularExpression::CaseInsensitiveOption};
|
||||
QRegExp domainRegex(domain, Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||
if (requestHost.contains(domainRegex))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user