Cloudstorage WebDAV: more fix slash in server address (#9128)
Honor server addresses with or without trailing slash. Regression since #9061. Closes #9125.
This commit is contained in:
1 parent
d5d5867d4e
commit
e336983fd2
1 file changed
+1
-1
@@ -122,7 +122,7 @@ function WebDavApi:listFolder(address, user, pass, folder_path)
|
||||
local is_not_collection = item:find("<[^:]*:resourcetype/>") or
|
||||
item:find("<[^:]*:resourcetype></[^:]*:resourcetype>")
|
||||
|
||||
local item_path = path == "" and item_name or path .. "/" .. item_name
|
||||
local item_path = (path == "" and has_trailing_slash) and item_name or path .. "/" .. item_name
|
||||
if item:find("<[^:]*:collection/>") then
|
||||
item_name = item_name .. "/"
|
||||
if not is_current_dir then
|
||||
|
||||
Reference in new issue
Block a user