Merge pull request #14462 from nextcloud/backport/14456/stable15

[stable15] Fix a bug with smb notify having leading slash when it should not
pull/14490/head
Roeland Jago Douma 2019-03-03 13:46:31 +07:00 committed by GitHub
commit 1f3dfc4949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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