diff --git a/radicale/app/proppatch.py b/radicale/app/proppatch.py index 70eff8b6..f81e6fba 100644 --- a/radicale/app/proppatch.py +++ b/radicale/app/proppatch.py @@ -28,6 +28,10 @@ from radicale.app.base import Access, ApplicationBase from radicale.hook import HookNotificationItem, HookNotificationItemTypes from radicale.log import logger +# HACK: https://github.com/tiran/defusedxml/issues/54 +import defusedxml.ElementTree as DefusedET # isort:skip +sys.modules["xml.etree"].ElementTree = ET # type:ignore[attr-defined] + def xml_proppatch(base_prefix: str, path: str, xml_request: Optional[ET.Element],