Compare commits

...

1 commit

Author SHA1 Message Date
Nick Craig-Wood
705572d400 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.
2023-07-01 15:53:57 +01:00

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 {