Possibly fix #79

This commit is contained in:
Henrique Dias committed 2017-04-15 14:00:41 +01:00
1 parent e46a007c71
commit 056ea2b8bd
6 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func CommandRunner(c *caddy.Controller) (CommandFunc, error) {
}
fn = func(r *http.Request, c *Config, u *User) error {
path := strings.Replace(r.URL.Path, c.BaseURL+c.WebDavURL, "", 1)
path := strings.Replace(r.URL.Path, c.WebDavURL, "", 1)
path = u.Scope + "/" + path
path = filepath.Clean(path)