mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
webdav: strip leading and trailing / off root - fixes #2257
This commit is contained in:
parent
1a3fb21a77
commit
dc59836021
@ -256,6 +256,7 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||||||
if !strings.HasSuffix(endpoint, "/") {
|
if !strings.HasSuffix(endpoint, "/") {
|
||||||
endpoint += "/"
|
endpoint += "/"
|
||||||
}
|
}
|
||||||
|
root = strings.Trim(root, "/")
|
||||||
|
|
||||||
user := config.FileGet(name, "user")
|
user := config.FileGet(name, "user")
|
||||||
pass := config.FileGet(name, "pass")
|
pass := config.FileGet(name, "pass")
|
||||||
|
Loading…
Reference in New Issue
Block a user