From bf8bd90bcba006d4f7bafed912d97d36ef23b637 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 19 Apr 2016 10:44:02 +0900 Subject: [PATCH] Fix removal of base_prefix in multiget requests --- radicale/xmlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 19747cf..12d21e1 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -500,7 +500,7 @@ def report(path, xml_request, collection): for href_element in root.findall(_tag("D", "href")): href_path = unquote(urlparse(href_element.text).path) if href_path.startswith(base_prefix): - hreferences.add(href_path[len(base_prefix):]) + hreferences.add(href_path[len(base_prefix) - 1:]) else: hreferences = (path,) # TODO: handle other filters