diff --git a/src/utils/fileUtils.ts b/src/utils/fileUtils.ts index 80c5817fa..7dd912ffc 100644 --- a/src/utils/fileUtils.ts +++ b/src/utils/fileUtils.ts @@ -125,6 +125,10 @@ function getDavPath({ filename, source = '' }: { filename: string, source?: stri // https://github.com/nextcloud/server/issues/19700 const prefixUser = davRootPath + if (!filename) { + return null + } + // If we have a source but we're not a dav resource, return null if (source && !source.includes(prefixUser)) { return null