From 1caa25711f5891135c7ebca63f33b8758c00c8e8 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Tue, 11 Aug 2026 17:06:27 +0200 Subject: [PATCH] fix(bug): incorrect method called --- SoObjects/Mailer/SOGoDraftObject.m | 2 +- Tests/Unit/TestNSString+Utilities.m | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/SoObjects/Mailer/SOGoDraftObject.m b/SoObjects/Mailer/SOGoDraftObject.m index 4310bd70e..14045226c 100644 --- a/SoObjects/Mailer/SOGoDraftObject.m +++ b/SoObjects/Mailer/SOGoDraftObject.m @@ -322,7 +322,7 @@ static NSString *userAgent = nil; - (void) setText: (NSString *) newText { - ASSIGN (text, [newText stringWithoutHTMLInjection: NO]); + ASSIGN (text, [newText stringWithoutHTMLInjection: NO stripAngular: NO]); } - (NSString *) text diff --git a/Tests/Unit/TestNSString+Utilities.m b/Tests/Unit/TestNSString+Utilities.m index a4ecd03c0..94efa8db9 100644 --- a/Tests/Unit/TestNSString+Utilities.m +++ b/Tests/Unit/TestNSString+Utilities.m @@ -99,17 +99,17 @@ - (void) test_stringWithoutHTMLInjection { - testEquals([[NSString stringWithString:@"foobar"] stringWithoutHTMLInjection: YES], @" foo bar"); - testEquals([[NSString stringWithString:@"fb "] stringWithoutHTMLInjection: YES], @"fb "); - testEquals([[NSString stringWithString:@"Test\n