diff -Nur --no-dereference smeserver-ezmlm-www-2.0.0.old/root/opt/mailinglist/ezmlm-www.pl smeserver-ezmlm-www-2.0.0/root/opt/mailinglist/ezmlm-www.pl --- smeserver-ezmlm-www-2.0.0.old/root/opt/mailinglist/ezmlm-www.pl 2022-03-19 15:51:35.558000000 -0400 +++ smeserver-ezmlm-www-2.0.0/root/opt/mailinglist/ezmlm-www.pl 2022-03-19 16:07:38.596000000 -0400 @@ -165,7 +165,8 @@ for (@MessageIDs) { print "
' . Encode::decode( $charset, htmlencode(conceal($part->{body}, $WebRequest{List})) ) . ''; + $plaintext .= ( ! Encode::is_utf8( htmlencode(conceal($part->{body}, $WebRequest{List})) ) ) ? '
' . Encode::decode( $charset, htmlencode(conceal($part->{body}, $WebRequest{List})) ) . '' : '
' . htmlencode(conceal($part->{body}, $WebRequest{List})). ''; } elsif ($part->{type} eq 'text/html') { if ($WebRequest{List}->{show_html}) { my $url = "?$WebRequest{ListID}::$WebRequest{MessageID}:get:$i"; @@ -238,7 +240,7 @@ $iframe .= 'marginheight="0" frameborder="0" vspace="0" hspace="0" '; $iframe .= 'style="overflow:visible;width:100%;display:none">'; } else { - $rawhtml .= '
' . Encode::decode( $charset, htmlencode(conceal($part->{body}, $WebRequest{List})) ) . ''; + $rawhtml .= ( ! Encode::is_utf8(htmlencode(conceal($part->{body}, $WebRequest{List})) ) ) ? '
' . Encode::decode( $charset, htmlencode(conceal($part->{body}, $WebRequest{List})) ) . '' : '
' . htmlencode(conceal($part->{body}, $WebRequest{List})) . ''; } } elsif ($part->{type} !~ m,^(?:text/(?:plain|html|enriched)|application/applefile)$,) { $attachments{$i} = $part; @@ -722,4 +724,4 @@ return undef; } -1; \ Pas de fin de ligne à la fin du fichier +1;