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

[stable15] Fix a bug with smb notify having leading slash when it should not
This commit is contained in:
Roeland Jago Douma 2019-03-03 13:46:31 +01:00 committed by GitHub
commit 1f3dfc4949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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