mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Guard against entries with no vevent_list in the vobject
Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
parent
b61ab9d886
commit
a1280dc17c
1 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,8 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
|
|||
found_props.append(expanded_element)
|
||||
else:
|
||||
found_props.append(element)
|
||||
n_vevents += len(item.vobject_item.vevent_list)
|
||||
if hasattr(item.vobject_item, "vevent_list"):
|
||||
n_vevents += len(item.vobject_item.vevent_list)
|
||||
# Avoid DoS with too many events
|
||||
if max_occurrence and n_vevents > max_occurrence:
|
||||
raise ValueError("REPORT occurrences limit of {} hit"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue