Skip to content

Commit 396beb6

Browse files
committed
bugfix
1 parent ca42587 commit 396beb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Controller/LocalController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ public function getExternalFolder(): DataResponse {
210210
*/
211211
public function setExternalFolder(int $storageId, string $root): DataResponse {
212212
try {
213+
if ($root === '') {
214+
throw new OcsException('empty root');
215+
}
216+
213217
$storages = $this->externalFolderService->getStorages();
214218
foreach ($storages as $storage) {
215219
if ($storage->getStorageId() === $storageId) {

0 commit comments

Comments
 (0)