mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-15 02:18:00 +00:00
fix(calendar): truncate long UIDs to avoid SQL insert error
This commit is contained in:
@@ -3367,7 +3367,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
// we generate a new UID based on a GUID
|
||||
uid = [event uid];
|
||||
|
||||
if (![uid length] ||
|
||||
if (![uid length] || [uid length] > 250 ||
|
||||
[uid rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"+/"]].location != NSNotFound)
|
||||
{
|
||||
uid = [self globallyUniqueObjectId];
|
||||
|
||||
Reference in New Issue
Block a user