1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-12 20:30:57 +00:00

Workaround for broken contact PHOTO from InfCloud

See issue #1205
This commit is contained in:
Unrud 2022-01-15 23:39:05 +01:00
parent 4a0bcde7a3
commit 75df1093be
5 changed files with 28 additions and 5 deletions

View file

@ -21,8 +21,6 @@ import sys
import time
from typing import Iterable, Iterator, Optional, Tuple
import vobject
import radicale.item as radicale_item
from radicale import pathutils
from radicale.log import logger
@ -93,8 +91,8 @@ class CollectionPartGet(CollectionPartCache, CollectionPartLock,
cache_content = self._load_item_cache(href, cache_hash)
if cache_content is None:
try:
vobject_items = list(vobject.readComponents(
raw_text.decode(self._encoding)))
vobject_items = radicale_item.read_components(
raw_text.decode(self._encoding))
radicale_item.check_and_sanitize_items(
vobject_items, tag=self.tag)
vobject_item, = vobject_items