mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #29521 from nextcloud/backport/29366/stable19
[stable19] Fix security issues when copying groupfolder with advanced ACL
This commit is contained in:
commit
fc947593e4
1 changed files with 4 additions and 1 deletions
|
|
@ -513,7 +513,10 @@ class Local extends \OC\Files\Storage\Common {
|
|||
* @return bool
|
||||
*/
|
||||
public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) {
|
||||
if ($sourceStorage->instanceOfStorage(Local::class)) {
|
||||
// Don't treat ACLStorageWrapper like local storage where copy can be done directly.
|
||||
// Instead use the slower recursive copying in php from Common::copyFromStorage with
|
||||
// more permissions checks.
|
||||
if ($sourceStorage->instanceOfStorage(Local::class) && !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper')) {
|
||||
if ($sourceStorage->instanceOfStorage(Jail::class)) {
|
||||
/**
|
||||
* @var \OC\Files\Storage\Wrapper\Jail $sourceStorage
|
||||
|
|
|
|||
Loading…
Reference in a new issue