Check result of storage wrappers
This commit is contained in:
parent
114d1acd2c
commit
4cb8ca1860
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue