Check that vobject_item have a UID

This commit is contained in:
Unrud
2017-06-06 20:01:09 +02:00
parent fe97741f08
commit 2860c664d0
9 changed files with 30 additions and 3 deletions

View File

@ -788,6 +788,8 @@ class Application:
try:
items = list(vobject.readComponents(content or ""))
for item in items:
storage.check_item(item)
except Exception as e:
self.logger.warning(
"Bad PUT request on %r: %s", path, e, exc_info=True)