(fix) append .ics extension if not present when importing events (fixes #2308)
parent
1da36a3ef9
commit
457fccd5ac
|
@ -3237,6 +3237,12 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||
}
|
||||
}
|
||||
|
||||
// If the UID isn't ending with the ".ics" extension, let's add it to avoid
|
||||
// confusing broken CalDAV client (like Nokia N9 and Korganizer) that relies
|
||||
// on this (see #2308)
|
||||
if (![[uid lowercaseString] hasSuffix: @".ics"])
|
||||
uid = [NSString stringWithFormat: @"%@.ics", uid];
|
||||
|
||||
object = [SOGoAppointmentObject objectWithName: uid
|
||||
inContainer: self];
|
||||
[object setIsNew: YES];
|
||||
|
@ -3400,8 +3406,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||
timezone: timezone]))
|
||||
{
|
||||
imported++;
|
||||
[uids setValue: uid
|
||||
forKey: originalUid];
|
||||
[uids setValue: uid forKey: originalUid];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue