1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Allow quoted-printable encoding for vObjects.

Resolves the parsing issue in #1238.
This commit is contained in:
David Arnold 2024-04-27 14:22:33 +00:00
parent 7340ddc9d2
commit 16eadd11b5

View file

@ -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(