mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 14:47:31 +09:00
Bug 1525120 - Fix condition for decoding attachments (base64/qp) when saving or forwarding.
Tag #1273
This commit is contained in:
parent
6debc5b306
commit
84617f965f
1 changed files with 4 additions and 5 deletions
|
|
@ -96,10 +96,9 @@ MimeLeaf_parse_begin (MimeObject *obj)
|
||||||
// don't decode text parts of message types. Other output formats,
|
// don't decode text parts of message types. Other output formats,
|
||||||
// like "display" (nsMimeMessageBodyDisplay), need decoding.
|
// like "display" (nsMimeMessageBodyDisplay), need decoding.
|
||||||
(obj->options->format_out == nsMimeOutput::nsMimeMessageRaw &&
|
(obj->options->format_out == nsMimeOutput::nsMimeMessageRaw &&
|
||||||
obj->parent &&
|
obj->parent && obj->parent->output_p &&
|
||||||
(!PL_strcasecmp(obj->parent->content_type, MESSAGE_NEWS) ||
|
(!PL_strcasecmp(obj->parent->content_type, MESSAGE_NEWS) ||
|
||||||
!PL_strcasecmp(obj->parent->content_type, MESSAGE_RFC822)) &&
|
!PL_strcasecmp(obj->parent->content_type, MESSAGE_RFC822))))
|
||||||
!PL_strncasecmp(obj->content_type, "text/", 5)))
|
|
||||||
/* no-op */ ;
|
/* no-op */ ;
|
||||||
else if (!PL_strcasecmp(obj->encoding, ENCODING_BASE64))
|
else if (!PL_strcasecmp(obj->encoding, ENCODING_BASE64))
|
||||||
fn = &MimeB64DecoderInit;
|
fn = &MimeB64DecoderInit;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue