Skip to content

Commit

Permalink
fix: undefined filename in livephoto
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>

[skip ci]
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Aug 13, 2024
1 parent ed28d89 commit 1c2667d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ function getDavPath({ filename, basename, source = '' }: { filename: string, bas

const prefixUser = getUserRoot()

if (!filename || typeof filename !== 'string') {
return null
}

// If we have a source but we're not a dav resource, return null
if (source && !source.includes(prefixUser)) {
return null
Expand Down

0 comments on commit 1c2667d

Please sign in to comment.