archive: prevent crossing user boundary
parent
1cad7828e6
commit
2bfb04702e
|
@ -89,6 +89,11 @@ class ArchiveController extends ApiBase
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hit the user's root folder
|
||||||
|
if ($parent->getPath() === $userFolder->getPath()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Hit a storage root
|
// Hit a storage root
|
||||||
try {
|
try {
|
||||||
if ($parent->getParent()->getStorage()->getId() !== $fileStorageId) {
|
if ($parent->getParent()->getStorage()->getId() !== $fileStorageId) {
|
||||||
|
|
Loading…
Reference in New Issue