diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp index bcfd2a349a..7539c26ecb 100644 --- a/src/network/ssl/qsslcertificate.cpp +++ b/src/network/ssl/qsslcertificate.cpp @@ -527,7 +527,7 @@ QList QSslCertificate::fromPath(const QString &path, #if QT_CONFIG(regularexpression) if (syntax == PatternSyntax::Wildcard) - sourcePath = QRegularExpression::wildcardToRegularExpression(sourcePath); + sourcePath = QRegularExpression::wildcardToRegularExpression(sourcePath, QRegularExpression::UnanchoredWildcardConversion); QRegularExpression pattern(QRegularExpression::anchoredPattern(sourcePath)); #endif