From c5c6a328b1133f4bb9ee12683247d59c65986a0f Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 15 Jan 2025 18:19:20 +0100 Subject: [PATCH] Encode config uri in order to take account of special characters like spaces. --- Linphone/model/core/CoreModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Linphone/model/core/CoreModel.cpp b/Linphone/model/core/CoreModel.cpp index a79c097b..0be874ac 100644 --- a/Linphone/model/core/CoreModel.cpp +++ b/Linphone/model/core/CoreModel.cpp @@ -220,7 +220,8 @@ bool CoreModel::setFetchConfig(QString filePath) { if (!filePath.isEmpty()) { if (mCore) { filePath.replace('\\', '/'); - fetched = mCore->setProvisioningUri(Utils::appStringToCoreString(filePath)) == 0; + QUrl url(filePath); + fetched = mCore->setProvisioningUri(Utils::appStringToCoreString(url.toEncoded())) == 0; } } if (!fetched) {