Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-18 20:54:14 +0400
committerVincent Petry <pvince81@owncloud.com>2014-03-18 20:54:14 +0400
commit8ababef4cdd8a62b0f2afcecdc1233b84795163d (patch)
treeb7ccd5cd08b231adc86469dc2f8227e9a3d91ba5 /apps
parentd744e2c1760c959918597ee814a9a70442a5c3b1 (diff)
Fix validation of allowed personal backend
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_external/lib/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 2767076eefa..3d8847c008e 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -321,7 +321,7 @@ class OC_Mount_Config {
// Verify that the mount point applies for the current user
// Prevent non-admin users from mounting local storage and other disabled backends
$allowed_backends = self::getPersonalBackends();
- if ($applicable != OCP\User::getUser() || !in_array($class, $allowed_backends)) {
+ if ($applicable != OCP\User::getUser() || !isset($allowed_backends[$class])) {
return false;
}
$mountPoint = '/'.$applicable.'/files/'.ltrim($mountPoint, '/');