webdav: nextcloud: fix must use /dav/files/USER endpoint not /webdav error

Before this change the regexp validating the endpoint URL was a bit
too strict allowing only /dav/files/USER.

This patch relaxes it allowing /dav/files/USER/dir/subdir etc.
This commit is contained in:
Nick Craig-Wood 2023-07-01 15:53:57 +01:00
parent 00512e1303
commit 705572d400
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ func (f *Fs) fetchAndSetBearerToken() error {
return nil
}
var validateNextCloudChunkedURL = regexp.MustCompile(`^.*/dav/files/[^/]+/?$`)
var validateNextCloudChunkedURL = regexp.MustCompile(`^.*/dav/files/`)
// setQuirks adjusts the Fs for the vendor passed in
func (f *Fs) setQuirks(ctx context.Context, vendor string) error {