diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-02 15:00:12 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-07-02 15:00:12 +0200 |
commit | edb67f9f4dc8d3c028ba6f2d157d2174fb40aba8 (patch) | |
tree | 2cc6fc30b19260648bf81d72d0366e9ef66edc0f /lib/private/files/mount | |
parent | 0008db9995baede8136a22892a9240c25b2c2ef8 (diff) | |
download | nextcloud-server-edb67f9f4dc8d3c028ba6f2d157d2174fb40aba8.tar.gz nextcloud-server-edb67f9f4dc8d3c028ba6f2d157d2174fb40aba8.zip |
Remove invalid mounts from the active fs
Diffstat (limited to 'lib/private/files/mount')
-rw-r--r-- | lib/private/files/mount/manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/mount/manager.php b/lib/private/files/mount/manager.php index 45a9f339fba..e5180cfe173 100644 --- a/lib/private/files/mount/manager.php +++ b/lib/private/files/mount/manager.php @@ -27,6 +27,10 @@ class Manager { * @param string $mountPoint */ public function removeMount($mountPoint) { + $mountPoint = Filesystem::normalizePath($mountPoint); + if (strlen($mountPoint) > 1) { + $mountPoint .= '/'; + } unset($this->mounts[$mountPoint]); } |