From 054637f731bc54c7a50468e6dd485494ee078229 Mon Sep 17 00:00:00 2001 From: Ari Selseng Date: Fri, 1 Mar 2019 13:55:52 +0100 Subject: [PATCH] Fix a bug with smb notify having leading slash when it should not Signed-off-by: Ari Selseng --- apps/files_external/lib/Command/Notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php index 04748117e278a..b859a825c809d 100644 --- a/apps/files_external/lib/Command/Notify.php +++ b/apps/files_external/lib/Command/Notify.php @@ -155,7 +155,7 @@ private function createStorage(StorageConfig $mount) { } private function markParentAsOutdated($mountId, $path) { - $parent = dirname($path); + $parent = ltrim(dirname($path), '/'); if ($parent === '.') { $parent = ''; }