mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
caldav: fix validation error when VTIMEZONE is after VEVENT
This commit is contained in:
parent
dc63df9058
commit
6f22a649ac
@ -54,7 +54,7 @@ func ValidateCalendarObject(cal *ical.Calendar) (eventType string, uid string, e
|
|||||||
if uid == "" {
|
if uid == "" {
|
||||||
uid = compUID
|
uid = compUID
|
||||||
}
|
}
|
||||||
if uid != compUID {
|
if compUID != "" && uid != compUID {
|
||||||
return "", "", fmt.Errorf("conflicting UID values in calendar: %s, %s", uid, compUID)
|
return "", "", fmt.Errorf("conflicting UID values in calendar: %s, %s", uid, compUID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user