summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-14 16:53:02 +0100
committerJulius Härtl <jus@bitgrid.net>2021-01-14 16:53:02 +0100
commit9ee7d0b718b6aa1d10b7ed66326dd0a6d7490a0f (patch)
tree82815d868a4990e2af5a693cb248871de714c415 /apps/files_external
parentb0caa55563acc16c02a3bb8463af863d4f83879c (diff)
downloadnextcloud-server-9ee7d0b718b6aa1d10b7ed66326dd0a6d7490a0f.tar.gz
nextcloud-server-9ee7d0b718b6aa1d10b7ed66326dd0a6d7490a0f.zip
Fix files_external:notify command when running withing a subdirectory of the SMB share
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php2
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) {