webdav: properly URL-encode hrefs in PROPFIND response

This commit is contained in:
Simon Ser 2020-01-21 20:08:58 +01:00
parent 4e4a5abed2
commit f6d0a37ea4
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -153,5 +153,6 @@ func (b *backend) propfindFile(propfind *internal.Propfind, name string, fi os.F
// TODO: getetag
}
return internal.NewPropfindResponse(name, propfind, props)
href := url.URL{Path: name}.String()
return internal.NewPropfindResponse(href, propfind, props)
}