Skip to content

Commit 4a3e7bb

Browse files
author
Ahmad Samir
committed
qtlsbackend_openssl: use QFile::decodeName()
... instead of reyling on the QByteArray to QString implicit conversion. Pick-to: 6.9 Change-Id: Ia9e8026f2962009d9deac044e42b18f6333cfec1 Reviewed-by: Mårten Nordheim <[email protected]>
1 parent 6952cfe commit 4a3e7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/tls/openssl/qtlsbackend_openssl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ QList<QSslCertificate> systemCaCertificates()
394394
static const QStringList nameFilters = {u"*.pem"_s, u"*.crt"_s};
395395
using F = QDirListing::IteratorFlag;
396396
constexpr auto flags = F::FilesOnly | F::ResolveSymlinks; // Files and symlinks to files
397-
for (const auto &directory : directories) {
398-
for (const auto &dirEntry : QDirListing(directory, nameFilters, flags)) {
397+
for (const QByteArray &directory : directories) {
398+
for (const auto &dirEntry : QDirListing(QFile::decodeName(directory), nameFilters, flags)) {
399399
// use canonical path here to not load the same certificate twice if symlinked
400400
certFiles.insert(dirEntry.canonicalFilePath());
401401
}

0 commit comments

Comments
 (0)