From 9be7b7a7bceb6c975cb4255bd5b74b61fd52afb3 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Thu, 18 Jun 2026 10:43:15 +0200 Subject: [PATCH] fix(mail): mind html encoded curly bracket --- SoObjects/SOGo/NSString+Utilities.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoObjects/SOGo/NSString+Utilities.m b/SoObjects/SOGo/NSString+Utilities.m index 70bc274f6..284d7e693 100644 --- a/SoObjects/SOGo/NSString+Utilities.m +++ b/SoObjects/SOGo/NSString+Utilities.m @@ -1061,11 +1061,11 @@ static int cssEscapingCount; // Remove {{ and }} as they are interprated by angularJS with no way of escaping - regex = [NSRegularExpression regularExpressionWithPattern:@"\\{\\{" + regex = [NSRegularExpression regularExpressionWithPattern:@"(\\{\\{)|({{)" options: NSRegularExpressionCaseInsensitive error:&error]; newResult = [regex stringByReplacingMatchesInString:result options:0 range:NSMakeRange(0, [result length]) withTemplate:@"{\\\\{"]; result = [NSString stringWithString: newResult]; - regex = [NSRegularExpression regularExpressionWithPattern:@"\\}\\}" + regex = [NSRegularExpression regularExpressionWithPattern:@"(\\}\\})|(}})" options: NSRegularExpressionCaseInsensitive error:&error]; newResult = [regex stringByReplacingMatchesInString:result options:0 range:NSMakeRange(0, [result length]) withTemplate:@"}/}"]; result = [NSString stringWithString: newResult];