From d44179142f7c683814dd1b5406fffe1d287c008b Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 17 Oct 2014 12:02:26 +0200 Subject: [PATCH] Discovery phase: Properly decode percent encoding --- src/mirall/discoveryphase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mirall/discoveryphase.cpp b/src/mirall/discoveryphase.cpp index bc89091766..d21956d84f 100644 --- a/src/mirall/discoveryphase.cpp +++ b/src/mirall/discoveryphase.cpp @@ -16,6 +16,8 @@ #include #include +#include + namespace Mirall { bool DiscoveryJob::isInSelectiveSyncBlackList(const QString& path) const @@ -70,7 +72,7 @@ void DiscoveryJob::update_job_update_callback (bool local, updateJob->lastUpdateProgressCallbackCall.restart(); } - QString path = QString::fromUtf8(dirUrl).section('/', -1); + QString path(QUrl::fromPercentEncoding(QByteArray(dirUrl)).section('/', -1)); emit updateJob->folderDiscovered(local, path); } }