mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
WebDAV: fix bugs when start folder starts with "/" (#9688)
This commit is contained in:
@@ -17,7 +17,7 @@ function WebDav:run(address, user, pass, path)
|
||||
end
|
||||
|
||||
function WebDav:downloadFile(item, address, username, password, local_path, callback_close)
|
||||
local code_response = WebDavApi:downloadFile(address .. WebDavApi:urlEncode( item.url ), username, password, local_path)
|
||||
local code_response = WebDavApi:downloadFile(WebDavApi:getJoinedPath(address, item.url), username, password, local_path)
|
||||
if code_response == 200 then
|
||||
local __, filename = util.splitFilePathName(local_path)
|
||||
if G_reader_settings:isTrue("show_unsupported") and not DocumentRegistry:hasProvider(filename) then
|
||||
|
||||
Reference in New Issue
Block a user