From fa9f0acf5e58dcc4f68d4effbdaefa795c6b67c4 Mon Sep 17 00:00:00 2001 From: Steady Quad Date: Fri, 2 Dec 2022 23:47:16 +0100 Subject: [PATCH] cloudstorage: Fix directory listing for some WebDAV servers (#9847) (sub)folders on some WebDAV servers are not listed in cloudstorage due to strict xml element matching of elements. --- frontend/apps/cloudstorage/webdavapi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/apps/cloudstorage/webdavapi.lua b/frontend/apps/cloudstorage/webdavapi.lua index 9a73fd961..8bfda02c6 100644 --- a/frontend/apps/cloudstorage/webdavapi.lua +++ b/frontend/apps/cloudstorage/webdavapi.lua @@ -133,7 +133,7 @@ function WebDavApi:listFolder(address, user, pass, folder_path, folder_mode) item:find("<[^:]*:resourcetype>") local item_path = (path == "" and has_trailing_slash) and item_name or path .. "/" .. item_name - if item:find("<[^:]*:collection/>") then + if item:find("<[^:]*:collection[^<]*/>") then item_name = item_name .. "/" if not is_current_dir then table.insert(webdav_list, {