Merge pull request #10149 from owncloud/storage-wrapper-check

Check result of storage wrappers
This commit is contained in:
Morris Jobke 2015-08-30 19:48:37 +02:00
commit b50ac6ff2f

View file

@ -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;
}