From 6f22a649ac4cb9fc866cd4ad245f21816a0ce595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Chachu=C5=82a?= Date: Wed, 14 Sep 2022 19:42:35 +0200 Subject: [PATCH] caldav: fix validation error when VTIMEZONE is after VEVENT --- caldav/caldav.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caldav/caldav.go b/caldav/caldav.go index 014e257..75aa256 100644 --- a/caldav/caldav.go +++ b/caldav/caldav.go @@ -54,7 +54,7 @@ func ValidateCalendarObject(cal *ical.Calendar) (eventType string, uid string, e if uid == "" { uid = compUID } - if uid != compUID { + if compUID != "" && uid != compUID { return "", "", fmt.Errorf("conflicting UID values in calendar: %s, %s", uid, compUID) } }