Skip to content

Commit 7c43832

Browse files
susnuxbackportbot[bot]
authored andcommitted
fix(dav): do not list intermediate upload folders
fix(dav): do not list intermediate upload folders Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> [skip ci]
1 parent 19f83e3 commit 7c43832

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/dav/lib/Upload/RootCollection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function __construct(PrincipalBackend\BackendInterface $principalBackend,
3939
CleanupService $cleanupService) {
4040
parent::__construct($principalBackend, $principalPrefix);
4141
$this->cleanupService = $cleanupService;
42+
$this->disableListing = true;
4243
}
4344

4445
/**

apps/dav/lib/Upload/UploadHome.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use OC\Files\View;
3030
use OCA\DAV\Connector\Sabre\Directory;
3131
use Sabre\DAV\Exception\Forbidden;
32+
use Sabre\DAV\Exception\MethodNotAllowed;
3233
use Sabre\DAV\ICollection;
3334

3435
class UploadHome implements ICollection {

0 commit comments

Comments
 (0)