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

Merge pull request #1476 from da4089/master

Allow quoted-printable encoding for vObjects.
This commit is contained in:
Peter Bieringer 2024-04-27 17:17:18 +02:00 committed by GitHub
commit a6368d8e66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(