diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-09-04 20:53:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 20:53:06 +0200 |
commit | fa6013aac756a684f2de2cb8be76f4b8a576d096 (patch) | |
tree | 69f0d1a28ef8e53e253e849b123b919431ad1e95 | |
parent | fa1b9fcc0388d36a42a54ff326a69eb691f79147 (diff) | |
parent | 2f0a9f21758002244912fbf5d49e2dd56eff9884 (diff) | |
download | nextcloud-server-fa6013aac756a684f2de2cb8be76f4b8a576d096.tar.gz nextcloud-server-fa6013aac756a684f2de2cb8be76f4b8a576d096.zip |
Merge pull request #16992 from nextcloud/backport/16932/stable15
[stable15] Be sure to get the jailed path if the storage is a jail
-rw-r--r-- | apps/workflowengine/lib/Manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index 48d29cf207e..080faa6bfc1 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -22,6 +22,7 @@ namespace OCA\WorkflowEngine; +use OC\Files\Storage\Wrapper\Jail; use OCP\AppFramework\QueryException; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\Storage\IStorage; @@ -71,6 +72,10 @@ class Manager implements IManager { */ public function setFileInfo(IStorage $storage, $path) { $this->storage = $storage; + + if ($storage->instanceOfStorage(Jail::class)) { + $path = $storage->getJailedPath($path); + } $this->path = $path; } |