From a24780ef54f4c4ea2de00066f47e5963c2fcfcfc Mon Sep 17 00:00:00 2001 From: zjregee Date: Tue, 27 Feb 2024 15:05:19 +0800 Subject: [PATCH] fix webdav lister path panic --- core/src/services/webdav/lister.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/services/webdav/lister.rs b/core/src/services/webdav/lister.rs index fa125711ba6b..67b81e5e9173 100644 --- a/core/src/services/webdav/lister.rs +++ b/core/src/services/webdav/lister.rs @@ -60,7 +60,7 @@ impl oio::PageList for WebdavLister { .unwrap_or(&res.href); // Ignore the root path itself. - if self.root == path { + if self.root == path || self.root.trim_end_matches('/') == path { continue; }