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:
parent
7340ddc9d2
commit
16eadd11b5
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ def read_components(s: str) -> List[vobject.base.Component]:
|
||||||
s = re.sub(r"^(PHOTO(?:;[^:\r\n]*)?;ENCODING=b(?:;[^:\r\n]*)?:)"
|
s = re.sub(r"^(PHOTO(?:;[^:\r\n]*)?;ENCODING=b(?:;[^:\r\n]*)?:)"
|
||||||
r"data:[^;,\r\n]*;base64,", r"\1", s,
|
r"data:[^;,\r\n]*;base64,", r"\1", s,
|
||||||
flags=re.MULTILINE | re.IGNORECASE)
|
flags=re.MULTILINE | re.IGNORECASE)
|
||||||
return list(vobject.readComponents(s))
|
return list(vobject.readComponents(s, allowQP=True))
|
||||||
|
|
||||||
|
|
||||||
def predict_tag_of_parent_collection(
|
def predict_tag_of_parent_collection(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue