diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-14 10:15:43 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:25 +0200 |
commit | 22e0a4b9a8835df4bfc88b478e694b0983cb1060 (patch) | |
tree | fd0831c78289666f4b61c674eb3b4834872cc844 /apps | |
parent | c9bd2f7a6c1e72a2ed6d7aa5f180e2c0757ac24c (diff) | |
download | nextcloud-server-22e0a4b9a8835df4bfc88b478e694b0983cb1060.tar.gz nextcloud-server-22e0a4b9a8835df4bfc88b478e694b0983cb1060.zip |
external storages: allow to mount a folder called "Shared", it is no longer a reserved name
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_external/lib/config.php | 4 | ||||
-rw-r--r-- | apps/files_external/tests/mountconfig.php | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 71f6ae78878..99eca2f38cf 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -373,8 +373,8 @@ class OC_Mount_Config { $isPersonal = false) { $backends = self::getBackends(); $mountPoint = OC\Files\Filesystem::normalizePath($mountPoint); - if ($mountPoint === '' || $mountPoint === '/' || $mountPoint == '/Shared') { - // can't mount at root or "Shared" folder + if ($mountPoint === '' || $mountPoint === '/') { + // can't mount at root folder return false; } diff --git a/apps/files_external/tests/mountconfig.php b/apps/files_external/tests/mountconfig.php index c89874c94d5..1921ec76af3 100644 --- a/apps/files_external/tests/mountconfig.php +++ b/apps/files_external/tests/mountconfig.php @@ -128,9 +128,6 @@ class Test_Mount_Config extends \PHPUnit_Framework_TestCase { $isPersonal = false; $this->assertFalse(OC_Mount_Config::addMountPoint('', $storageClass, array(), $mountType, $applicable, $isPersonal)); $this->assertFalse(OC_Mount_Config::addMountPoint('/', $storageClass, array(), $mountType, $applicable, $isPersonal)); - $this->assertFalse(OC_Mount_Config::addMountPoint('Shared', $storageClass, array(), $mountType, $applicable, $isPersonal)); - $this->assertFalse(OC_Mount_Config::addMountPoint('/Shared', $storageClass, array(), $mountType, $applicable, $isPersonal)); - } /** @@ -488,7 +485,7 @@ class Test_Mount_Config extends \PHPUnit_Framework_TestCase { 'root' => 'someroot' ); - // add mount point as "test" user + // add mount point as "test" user $this->assertTrue( OC_Mount_Config::addMountPoint( '/ext', |