diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-19 14:53:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 14:53:16 +0100 |
commit | e6fd9b2f55b1920c5e3bb2c2448ec3488acc56c9 (patch) | |
tree | 729f2c27ad47fc6c2725f28f46382fee75d02b02 | |
parent | 12868487312fa2d153fdebc7592ab54dcaf2c419 (diff) | |
parent | 9ee7d0b718b6aa1d10b7ed66326dd0a6d7490a0f (diff) | |
download | nextcloud-server-e6fd9b2f55b1920c5e3bb2c2448ec3488acc56c9.tar.gz nextcloud-server-e6fd9b2f55b1920c5e3bb2c2448ec3488acc56c9.zip |
Merge pull request #25129 from nextcloud/bugfix/smb-notify-subpath
Fix files_external:notify command when running withing a subdirectory
-rw-r--r-- | apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php index 1570ba15573..e8c89979e89 100644 --- a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php +++ b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php @@ -50,7 +50,7 @@ class SMBNotifyHandler implements INotifyHandler { */ public function __construct(\Icewind\SMB\INotifyHandler $shareNotifyHandler, $root) { $this->shareNotifyHandler = $shareNotifyHandler; - $this->root = $root; + $this->root = str_replace('\\', '/', $root); } private function relativePath($fullPath) { |