From 4f6d2e8b58238d357a216fc83ac3383b239d1602 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 18 Mar 2017 04:59:27 +0100 Subject: [PATCH] Only search for filter that are direct children --- radicale/xmlutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index f94b5e0..c7c55c9 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -861,8 +861,8 @@ def report(base_prefix, path, xml_request, collection): else: hreferences = (path,) filters = ( - root.findall(".//%s" % _tag("C", "filter")) + - root.findall(".//%s" % _tag("CR", "filter"))) + root.findall("./%s" % _tag("C", "filter")) + + root.findall("./%s" % _tag("CR", "filter"))) multistatus = ET.Element(_tag("D", "multistatus"))