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
committed by Hivert Quentin
parent 39a35830e9
commit f11f34cdef
+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"]];