Merge pull request #16991 from nextcloud/backport/16932/stable16
[stable16] Be sure to get the jailed path if the storage is a jail
This commit is contained in:
commit
654c0b2b1b
|
@ -22,6 +22,7 @@
|
||||||
namespace OCA\WorkflowEngine;
|
namespace OCA\WorkflowEngine;
|
||||||
|
|
||||||
|
|
||||||
|
use OC\Files\Storage\Wrapper\Jail;
|
||||||
use OCP\AppFramework\QueryException;
|
use OCP\AppFramework\QueryException;
|
||||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||||
use OCP\Files\Storage\IStorage;
|
use OCP\Files\Storage\IStorage;
|
||||||
|
@ -71,6 +72,10 @@ class Manager implements IManager {
|
||||||
*/
|
*/
|
||||||
public function setFileInfo(IStorage $storage, $path) {
|
public function setFileInfo(IStorage $storage, $path) {
|
||||||
$this->storage = $storage;
|
$this->storage = $storage;
|
||||||
|
|
||||||
|
if ($storage->instanceOfStorage(Jail::class)) {
|
||||||
|
$path = $storage->getJailedPath($path);
|
||||||
|
}
|
||||||
$this->path = $path;
|
$this->path = $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue