mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 18:35:10 +00:00
@@ -613,8 +613,7 @@ convertChars (const char *oldString, unsigned int oldLength,
|
||||
unsigned int newLength;
|
||||
|
||||
utf8String = [self UTF8String];
|
||||
newString = convertChars (utf8String, strlen (utf8String),
|
||||
&newLength);
|
||||
newString = convertChars (utf8String, strlen (utf8String), &newLength);
|
||||
convertedString = [[NSString alloc] initWithBytes: newString
|
||||
length: newLength
|
||||
encoding: NSUTF8StringEncoding];
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
if (html && !htmlComposition)
|
||||
rc = [raw htmlToText];
|
||||
else if (!html && htmlComposition)
|
||||
rc = [raw stringByConvertingCRLNToHTML];
|
||||
rc = [[raw stringByEscapingHTMLString] stringByConvertingCRLNToHTML];
|
||||
else
|
||||
rc = raw;
|
||||
|
||||
@@ -171,8 +171,8 @@
|
||||
= [NSArray arrayWithObjects: @"text/plain", @"text/html", nil];
|
||||
keys = [NSMutableArray array];
|
||||
[self addRequiredKeysOfStructure: [self bodyStructure]
|
||||
path: @"" toArray: keys acceptedTypes: acceptedTypes
|
||||
withPeek: NO];
|
||||
path: @"" toArray: keys acceptedTypes: acceptedTypes
|
||||
withPeek: NO];
|
||||
|
||||
return [self _contentForEditingFromKeys: keys];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user