From ee5a4169d1ff51fc4b8afd607b79c54f582ad152 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 31 Aug 2024 10:48:58 +0300 Subject: [PATCH] webdavapi: fix 'resourcetype' property check --- 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 923984d45..c306092f1 100644 --- a/frontend/apps/cloudstorage/webdavapi.lua +++ b/frontend/apps/cloudstorage/webdavapi.lua @@ -105,7 +105,7 @@ function WebDavApi:listFolder(address, user, pass, folder_path, folder_mode) local item_fullpath = item:match("<[^:]*:href[^>]*>(.*)") local item_name = FFIUtil.basename(util.htmlEntitiesToUtf8(util.urlDecode(item_fullpath))) local is_current_dir = item_name == string.sub(folder_path, -#item_name) - local is_not_collection = item:find("<[^:]*:resourcetype/>") or + local is_not_collection = item:find("<[^:]*:resourcetype%s*/>") or item:find("<[^:]*:resourcetype>") local item_path = path .. "/" .. item_name