Guard against entries with no vevent_list in the vobject
Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
@@ -310,6 +310,7 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
|
|||||||
found_props.append(expanded_element)
|
found_props.append(expanded_element)
|
||||||
else:
|
else:
|
||||||
found_props.append(element)
|
found_props.append(element)
|
||||||
|
if hasattr(item.vobject_item, "vevent_list"):
|
||||||
n_vevents += len(item.vobject_item.vevent_list)
|
n_vevents += len(item.vobject_item.vevent_list)
|
||||||
# Avoid DoS with too many events
|
# Avoid DoS with too many events
|
||||||
if max_occurrence and n_vevents > max_occurrence:
|
if max_occurrence and n_vevents > max_occurrence:
|
||||||
|
|||||||
Reference in New Issue
Block a user