From 16eadd11b5341c5bb9bae4e14bd54a1a670947b4 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sat, 27 Apr 2024 14:22:33 +0000 Subject: [PATCH 1/2] 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 600a28da7..c5a326904 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( From a009bb562f15c12b79c11d653535bdce6d1cf37b Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sat, 27 Apr 2024 15:12:47 +0000 Subject: [PATCH 2/2] Dummy commit to re-trigger build