aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-08-28 20:48:42 +0200
committerRobin Appelman <icewind@owncloud.com>2015-08-30 10:02:42 +0200
commit4cb8ca186097de43e48c1d99f83f30704313dab3 (patch)
tree5a5507382a5dfbb3a5e4e82e2e3b09be12b2093a /lib/private/files/storage
parent114d1acd2ca9f254b7e6639a2e1f0a1748e4c254 (diff)
downloadnextcloud-server-4cb8ca186097de43e48c1d99f83f30704313dab3.tar.gz
nextcloud-server-4cb8ca186097de43e48c1d99f83f30704313dab3.zip
Check result of storage wrappers
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r--lib/private/files/storage/storagefactory.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/storage/storagefactory.php b/lib/private/files/storage/storagefactory.php
index 62b393c845c..e8df5090f09 100644
--- a/lib/private/files/storage/storagefactory.php
+++ b/lib/private/files/storage/storagefactory.php
@@ -99,6 +99,9 @@ class StorageFactory implements IStorageFactory {
}, $wrappers);
foreach ($wrappers as $wrapper) {
$storage = $wrapper($mountPoint->getMountPoint(), $storage, $mountPoint);
+ if (!($storage instanceof \OCP\Files\Storage)) {
+ throw new \Exception('Invalid result from storage wrapper');
+ }
}
return $storage;
}