This commit is contained in:
Henrique Dias 2017-04-16 14:02:24 +01:00
parent a72ea31b17
commit 9bd3c18a2a
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
// the collection, or something else altogether. // the collection, or something else altogether.
// //
// It was decided on https://github.com/hacdias/caddy-filemanager/issues/85 // It was decided on https://github.com/hacdias/caddy-filemanager/issues/85
// that GET, for collection, will return the same as PROPFIND method. // that GET, for collections, will return the same as PROPFIND method.
path := strings.Replace(r.URL.Path, c.WebDavURL, "", 1) path := strings.Replace(r.URL.Path, c.WebDavURL, "", 1)
path = user.Scope + "/" + path path = user.Scope + "/" + path
path = filepath.Clean(path) path = filepath.Clean(path)