mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
1 parent
826537ed01
commit
359b6a99aa
3 files changed
+5
-5
No files matched your search
@@ -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