We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca42587 commit 396beb6Copy full SHA for 396beb6
lib/Controller/LocalController.php
@@ -210,6 +210,10 @@ public function getExternalFolder(): DataResponse {
210
*/
211
public function setExternalFolder(int $storageId, string $root): DataResponse {
212
try {
213
+ if ($root === '') {
214
+ throw new OcsException('empty root');
215
+ }
216
+
217
$storages = $this->externalFolderService->getStorages();
218
foreach ($storages as $storage) {
219
if ($storage->getStorageId() === $storageId) {
0 commit comments