From 90752c43822d1b9c6e034a5c40aed6bc1533f571 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 11 Aug 2021 16:33:18 -0400 Subject: [PATCH] fix(core): remove CR, diacritical marks, variation selectors --- SoObjects/SOGo/NSString+Utilities.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SoObjects/SOGo/NSString+Utilities.m b/SoObjects/SOGo/NSString+Utilities.m index ee9ba64bb..f89fa9bb8 100644 --- a/SoObjects/SOGo/NSString+Utilities.m +++ b/SoObjects/SOGo/NSString+Utilities.m @@ -309,10 +309,10 @@ static int cssEscapingCount; if (c == 0x0 || c == 0x9 || c == 0xA || - c == 0xD || - (c >= 0x20 && c < 0x334) || // Skip overstruck diacritics - (c > 0x338 && c < 0xD7FF) || - (c >= 0xE000 && c <= 0xFFFD) || + (c >= 0x20 && c < 0x300) || // Skip combining diacritical marks + (c > 0x36F && c < 0xD7FF) || + (c >= 0xE000 && c < 0xFE00) || // Skip variation selectors + (c > 0xFE0F && c <= 0xFFFD) || (c >= (wchar_t)0x10000 && c <= (wchar_t)0x10FFFF)) { start[j] = c;