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:
smizrahi
2026-05-06 19:24:00 +02:00
parent 05d588bc3a
commit d16a1a9708
+3 -3
View File
@@ -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"]];