Merge pull request #10149 from owncloud/storage-wrapper-check
Check result of storage wrappers
This commit is contained in:
commit
b50ac6ff2f
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue