mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-24 12:55:24 +00:00
fix(mail): escape References/Organization/Newsgroups headers in HTML forward so message-id chevrons aren't parsed as HTML tags hiding the quoted body. Closes #6046.
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [self _headerField: @"organization"]];
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [[self _headerField: @"organization"] stringByEscapingHTMLString]];
|
||||
else
|
||||
rc = [NSString stringWithFormat: @"%@\n", [self _headerField: @"organization"]];
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [self _headerField: @"newsgroups"]];
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [[self _headerField: @"newsgroups"] stringByEscapingHTMLString]];
|
||||
else
|
||||
rc = [NSString stringWithFormat: @"%@\n", [self _headerField: @"newsgroups"]];
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [self _headerField: @"references"]];
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [[self _headerField: @"references"] stringByEscapingHTMLString]];
|
||||
else
|
||||
rc = [NSString stringWithFormat: @"%@\n", [self _headerField: @"references"]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user