]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure the root has a trailing slash
authorRobin Appelman <icewind@owncloud.com>
Fri, 13 Feb 2015 13:51:56 +0000 (14:51 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 12:52:11 +0000 (13:52 +0100)
apps/files_external/lib/smb.php

index a61131401985dc74fa754fbd93cb0b6b2e74d73e..c554eaf19ee7485fbd37a680a67372826b0a7d53 100644 (file)
@@ -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');
                }