Bug 1457721 - ensure urls don't leak over boundaries. r=jorgk a=jorgk
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Sat, 28 Apr 2018 22:56:17 +0300
changeset 31434 a6ee70f976e2ba4e65dd56e9df513faae73011fb
parent 31433 dd9b7417eca94f24ca1bea33aab4c1f49b544402
child 31435 08f57e39702c2a30fa559e4f3866e20d826f9433
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersjorgk, jorgk
bugs1457721
Bug 1457721 - ensure urls don't leak over boundaries. r=jorgk a=jorgk
mailnews/mime/src/mimei.cpp
--- a/mailnews/mime/src/mimei.cpp
+++ b/mailnews/mime/src/mimei.cpp
@@ -1694,17 +1694,17 @@ MimeOptions_write(MimeHeaders *hdrs, Mim
 //  PR_ASSERT(opt->state->first_data_written_p);
 
   if (opt->state->separator_queued_p && user_visible_p)
   {
     opt->state->separator_queued_p = false;
     if (opt->state->separator_suppressed_p)
       opt->state->separator_suppressed_p = false;
     else {
-      const char *sep = "<BR><FIELDSET CLASS=\"mimeAttachmentHeader\">";
+      const char *sep = "<!--'\"--><BR><FIELDSET CLASS=\"mimeAttachmentHeader\">";
       int lstatus = opt->output_fn(sep, strlen(sep), closure);
       opt->state->separator_suppressed_p = false;
       if (lstatus < 0) return lstatus;
 
       nsCString name;
       name.Adopt(MimeHeaders_get_name(hdrs, opt));
       MimeHeaders_convert_header_value(opt, name, false);