From 16eadd11b5341c5bb9bae4e14bd54a1a670947b4 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sat, 27 Apr 2024 14:22:33 +0000 Subject: [PATCH] Allow quoted-printable encoding for vObjects. Resolves the parsing issue in #1238. --- radicale/item/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/item/__init__.py b/radicale/item/__init__.py index 600a28da..c5a32690 100644 --- a/radicale/item/__init__.py +++ b/radicale/item/__init__.py @@ -49,7 +49,7 @@ def read_components(s: str) -> List[vobject.base.Component]: s = re.sub(r"^(PHOTO(?:;[^:\r\n]*)?;ENCODING=b(?:;[^:\r\n]*)?:)" r"data:[^;,\r\n]*;base64,", r"\1", s, flags=re.MULTILINE | re.IGNORECASE) - return list(vobject.readComponents(s)) + return list(vobject.readComponents(s, allowQP=True)) def predict_tag_of_parent_collection(