Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2019-01-25 09:46:16 +0300
committerckamm <mail@ckamm.de>2019-02-11 15:35:14 +0300
commitc500866a788b4423e08821bc271ff21e738d55e0 (patch)
treecb245ac560d91d713ec342f239c7eb2804d8b4d0 /src/gui/sharemanager.cpp
parent63e11dc8dac716ca5f41b6dff9f9ab6c5cacfb9b (diff)
Folder: Add remoteFolderTrailingSlash()
There were cases where the "/" exception wasn't handled correctly and there'd be extra slashes in generated paths.
Diffstat (limited to 'src/gui/sharemanager.cpp')
-rw-r--r--src/gui/sharemanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/sharemanager.cpp b/src/gui/sharemanager.cpp
index 4bc32182a..555dd03f8 100644
--- a/src/gui/sharemanager.cpp
+++ b/src/gui/sharemanager.cpp
@@ -37,9 +37,7 @@ static void updateFolder(const AccountPtr &account, const QString &path)
if (path.startsWith(folderPath) && (path == folderPath || folderPath.endsWith('/') || path[folderPath.size()] == '/')) {
// Workaround the fact that the server does not invalidate the etags of parent directories
// when something is shared.
- auto relative = path.midRef(folderPath.size());
- if (relative.startsWith('/'))
- relative = relative.mid(1);
+ auto relative = path.midRef(f->remotePathTrailingSlash().length());
f->journalDb()->avoidReadFromDbOnNextSync(relative.toString());
// Schedule a sync so it can update the remote permission flag and let the socket API