Przeglądaj źródła

Only search for filter that are direct children

Unrud 9 lat temu
rodzic
commit
4f6d2e8b58
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      radicale/xmlutils.py

+ 2 - 2
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"))