Discovery phase: Properly decode percent encoding

This commit is contained in:
Daniel Molkentin 2014-10-17 12:02:26 +02:00
parent 681c43631b
commit d44179142f

View file

@ -16,6 +16,8 @@
#include <csync_private.h>
#include <qdebug.h>
#include <QUrl>
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);
}
}