diff --git a/SoObjects/SOGo/RTFHandler.m b/SoObjects/SOGo/RTFHandler.m index 2b6c98f86..f3283db8a 100644 --- a/SoObjects/SOGo/RTFHandler.m +++ b/SoObjects/SOGo/RTFHandler.m @@ -1,5 +1,5 @@ /* - Copyright (C) 2005-2013 Inverse inc. + Copyright (C) 2005-2022 Inverse inc. This file is part of SOGo. @@ -23,6 +23,8 @@ #include #include +#import + // // Useful macros // @@ -1456,7 +1458,7 @@ inline static void parseUl(RTFHandler *self, BOOL hasArg, int arg, RTFFormatting else active_charset = defaultCharset; - s = [NSString stringWithCharacters: &(active_charset[c]) length: 1]; + s = [[NSString stringWithCharacters: &(active_charset[c]) length: 1] stringByEscapingHTMLString]; d = [s dataUsingEncoding: NSUTF8StringEncoding]; [_html appendData: d]; }