Skip to content

Commit 031d10c

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 b74edfa commit 031d10c

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
@@ -24,6 +24,7 @@ public function __construct(
2424
private IUserSession $userSession,
2525
) {
2626
parent::__construct($principalBackend, $principalPrefix);
27+
$this->disableListing = true;
2728
}
2829

2930
/**

apps/dav/lib/Upload/UploadHome.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use OCP\Files\NotFoundException;
1515
use OCP\IUserSession;
1616
use Sabre\DAV\Exception\Forbidden;
17+
use Sabre\DAV\Exception\MethodNotAllowed;
1718
use Sabre\DAV\Exception\NotFound;
1819
use Sabre\DAV\ICollection;
1920

0 commit comments

Comments
 (0)