diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-22 18:36:27 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-22 18:36:27 +0100 |
commit | 2d947835b94362982c98caba68aa1073ab466249 (patch) | |
tree | 5ebcbeb5bd6b86799d8fb12f39242912bd1c1789 /apps/files_external/lib | |
parent | 476d8e6de073a095dda012079e7a6697e481c3c3 (diff) | |
download | nextcloud-server-2d947835b94362982c98caba68aa1073ab466249.tar.gz nextcloud-server-2d947835b94362982c98caba68aa1073ab466249.zip |
Now also preventing the user of "Shared" as mountpoint
Diffstat (limited to 'apps/files_external/lib')
-rwxr-xr-x | apps/files_external/lib/config.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index de42fe2f755..aaa6c5be1a0 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -267,8 +267,8 @@ class OC_Mount_Config { $applicable, $isPersonal = false) { $mountPoint = OC\Files\Filesystem::normalizePath($mountPoint); - if ($mountPoint === '' || $mountPoint === '/') { - // can't mount at root + if ($mountPoint === '' || $mountPoint === '/' || $mountPoint == '/Shared') { + // can't mount at root or "Shared" folder return false; } if ($isPersonal) { |