]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix a bug with smb notify having leading slash when it should not 14456/head
authorAri Selseng <ari@selseng.net>
Fri, 1 Mar 2019 12:55:52 +0000 (13:55 +0100)
committerAri Selseng <ari@selseng.net>
Fri, 1 Mar 2019 12:55:52 +0000 (13:55 +0100)
Signed-off-by: Ari Selseng <ari@selseng.net>
apps/files_external/lib/Command/Notify.php

index 04748117e278a7d90ca4ea7c0a4bf030d3c6a56e..b859a825c809d34c68d25dc25568a94a2b9e1b17 100644 (file)
@@ -155,7 +155,7 @@ class Notify extends Base {
        }
 
        private function markParentAsOutdated($mountId, $path) {
-               $parent = dirname($path);
+               $parent = ltrim(dirname($path), '/');
                if ($parent === '.') {
                        $parent = '';
                }