Skip to content

Commit

Permalink
(fix) do not decode from hex the event's UID (fixes #3965)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu authored and cgx committed Jan 7, 2017
1 parent aba24c0 commit ced9369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ActiveSync/SOGoMailObject+ActiveSync.m
Expand Up @@ -163,7 +163,7 @@ - (NSData *) _computeGlobalObjectIdFromEvent: (iCalEvent *) event
const char *bytes;

uid = [event uid];
uidAsASCII = [uid decodeFromHexidecimal];
uidAsASCII = [uid dataUsingEncoding: NSASCIIStringEncoding];
newGlobalId = (struct GlobalObjectId*)calloc(sizeof(uint8_t), sizeof(struct GlobalObjectId) + 0x0c + [uidAsASCII length]);

prefix = @"040000008200e00074c5b7101a82e008";
Expand Down

0 comments on commit ced9369

Please sign in to comment.