[Pkg-owncloud-commits] [owncloud-client] 105/211: Discovery phase: Properly decode percent encoding

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit d44179142f7c683814dd1b5406fffe1d287c008b
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Fri Oct 17 12:02:26 2014 +0200

    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 bc89091..d21956d 100644
--- a/src/mirall/discoveryphase.cpp
+++ b/src/mirall/discoveryphase.cpp
@@ -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);
     }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list