From 6467369cad5eebe9ade84cf9b61f12c4cbaff759 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 13 Feb 2015 14:51:56 +0100 Subject: [PATCH] make sure the root has a trailing slash --- apps/files_external/lib/smb.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index a6113140198..c554eaf19ee 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -45,6 +45,9 @@ class SMB extends Common { if (!$this->root || $this->root[0] != '/') { $this->root = '/' . $this->root; } + if (substr($this->root, -1, 1) != '/') { + $this->root .= '/'; + } } else { throw new \Exception('Invalid configuration'); } -- 2.39.5