소스 검색

Only search for filter that are direct children

Unrud 9 년 전
부모
커밋
4f6d2e8b58
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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"))