(fix) avoid incorrect truncation leading to exception (fixes #4806)
parent
1e43a695cd
commit
662ee865b7
|
@ -729,6 +729,17 @@ struct GlobalObjectId {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we didn't find a "space" character search again for &# to avoid
|
||||||
|
// truncating the content in the middle of a XML entity
|
||||||
|
if (i < 0)
|
||||||
|
{
|
||||||
|
for (i = len-2 ; i >= 0; i--)
|
||||||
|
{
|
||||||
|
if ([theContent characterAtIndex: i] == '&' && [theContent characterAtIndex: i+1] == '#')
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return [theContent substringToIndex: i];
|
return [theContent substringToIndex: i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -26,6 +26,7 @@ Bug fixes
|
||||||
- [core] make sure we handle events occurring after RRULE's UNTIL date
|
- [core] make sure we handle events occurring after RRULE's UNTIL date
|
||||||
- [core] avoid changing RRULE's UNTIL date for no reason
|
- [core] avoid changing RRULE's UNTIL date for no reason
|
||||||
- [eas] improve FolderSync operation (#4672)
|
- [eas] improve FolderSync operation (#4672)
|
||||||
|
- [eas] avoid incorrect truncation leading to exception (#4806)
|
||||||
|
|
||||||
4.0.8 (2019-07-19)
|
4.0.8 (2019-07-19)
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue