summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-22 18:36:27 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-22 18:36:27 +0100
commit2d947835b94362982c98caba68aa1073ab466249 (patch)
tree5ebcbeb5bd6b86799d8fb12f39242912bd1c1789 /apps/files_external/lib
parent476d8e6de073a095dda012079e7a6697e481c3c3 (diff)
downloadnextcloud-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-xapps/files_external/lib/config.php4
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) {