[Pkg-owncloud-commits] [owncloud] 11/69: [files_external] fix empty user mounts setting

David Prévot taffit at moszumanska.debian.org
Wed Nov 11 02:03:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 44ab8dde33414e2937ce1d80abe84e2d54814709
Author: Morris Jobke <hey at morrisjobke.de>
Date:   Wed Nov 4 15:47:03 2015 +0100

    [files_external] fix empty user mounts setting
    
    * fixes #19858
    * if no backend is allowed to be mounted also the user mount setting should be disabled
---
 apps/files_external/service/backendservice.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/apps/files_external/service/backendservice.php b/apps/files_external/service/backendservice.php
index 1e90247..b325517 100644
--- a/apps/files_external/service/backendservice.php
+++ b/apps/files_external/service/backendservice.php
@@ -72,6 +72,11 @@ class BackendService {
 		$this->userMountingBackends = explode(',',
 			$this->config->getAppValue('files_external', 'user_mounting_backends', '')
 		);
+
+		// if no backend is in the list an empty string is in the array and user mounting is disabled
+		if ($this->userMountingBackends === ['']) {
+			$this->userMountingAllowed = false;
+		}
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list