[Pkg-owncloud-commits] [owncloud] 21/24: Prevent objectstore being set from client side
David Prévot
taffit at moszumanska.debian.org
Wed Sep 2 13:30:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.7RC1
in repository owncloud.
commit 595381b9bd5676492ff8957de0590982ed1864a4
Author: Robin McCorkell <rmccorkell at owncloud.com>
Date: Tue Aug 25 16:27:50 2015 +0100
Prevent objectstore being set from client side
---
apps/files_external/lib/config.php | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index ddfab43..8eb968e 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -490,6 +490,11 @@ class OC_Mount_Config {
return false;
}
+ if (isset($classOptions['objectstore'])) {
+ // objectstore cannot be set by client side
+ return false;
+ }
+
if (!isset($backends[$class])) {
// invalid backend
return false;
@@ -843,6 +848,13 @@ class OC_Mount_Config {
$mountPoint[$applicable][$mountPath]['priority']
= $data[$mountType][$applicable][$mountPath]['priority'];
}
+ // Persistent objectstore
+ if (isset($data[$mountType][$applicable][$mountPath])
+ && isset($data[$mountType][$applicable][$mountPath]['objectstore'])
+ ) {
+ $mountPoint[$applicable][$mountPath]['objectstore']
+ = $data[$mountType][$applicable][$mountPath]['objectstore'];
+ }
$data[$mountType][$applicable]
= array_merge($data[$mountType][$applicable], $mountPoint[$applicable]);
} else {
--
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