Merge pull request #6052 from nextcloud/fix_jail_copy
Fix copy from jailed storage
This commit is contained in:
commit
3dc1bcd4c1
|
@ -412,6 +412,12 @@ class Local extends \OC\Files\Storage\Common {
|
|||
*/
|
||||
public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) {
|
||||
if ($sourceStorage->instanceOfStorage('\OC\Files\Storage\Local')) {
|
||||
if ($sourceStorage->instanceOfStorage(Jail::class)) {
|
||||
/**
|
||||
* @var \OC\Files\Storage\Wrapper\Jail $sourceStorage
|
||||
*/
|
||||
$sourceInternalPath = $sourceStorage->getUnjailedPath($sourceInternalPath);
|
||||
}
|
||||
/**
|
||||
* @var \OC\Files\Storage\Local $sourceStorage
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue