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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAri Selseng <ari@selseng.net>2019-03-01 15:55:52 +0300
committerAri Selseng <ari@selseng.net>2019-03-01 15:55:52 +0300
commitf156079a8bbe7e5449f57ab443a6412c075e3b8e (patch)
treee1ddf5827d6d813ced242d5addde4184b30ce452 /apps/files_external/lib
parentd0d1c85deffe225911c4e87b631389e056468cc6 (diff)
Fix a bug with smb notify having leading slash when it should not
Signed-off-by: Ari Selseng <ari@selseng.net>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/Command/Notify.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php
index 04748117e27..b859a825c80 100644
--- a/apps/files_external/lib/Command/Notify.php
+++ b/apps/files_external/lib/Command/Notify.php
@@ -155,7 +155,7 @@ class Notify extends Base {
}
private function markParentAsOutdated($mountId, $path) {
- $parent = dirname($path);
+ $parent = ltrim(dirname($path), '/');
if ($parent === '.') {
$parent = '';
}