Allow quoted-printable encoding for vObjects.
Resolves the parsing issue in #1238.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user