Skip to content

Commit 1c2667d

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
fix: undefined filename in livephoto
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> [skip ci]
1 parent ed28d89 commit 1c2667d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/utils/fileUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ function getDavPath({ filename, basename, source = '' }: { filename: string, bas
132132

133133
const prefixUser = getUserRoot()
134134

135+
if (!filename || typeof filename !== 'string') {
136+
return null
137+
}
138+
135139
// If we have a source but we're not a dav resource, return null
136140
if (source && !source.includes(prefixUser)) {
137141
return null

0 commit comments

Comments
 (0)