mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Invert test for non-ascii characters https://github.com/webmin/webmin/issues/1272
This commit is contained in:
@@ -2835,12 +2835,12 @@ sub send_text_mail
|
||||
{
|
||||
local ($from, $to, $cc, $subject, $body, $smtp) = @_;
|
||||
local $cs = &get_charset();
|
||||
local $attach = $body =~ /[\177-\377]/ ?
|
||||
local $attach = $body =~ /^[\000-\177]*$/ ?
|
||||
{ 'headers' => [ [ 'Content-type', 'text/plain' ] ],
|
||||
'data' => &entities_to_ascii($body) } :
|
||||
{ 'headers' => [ [ 'Content-Type', 'text/plain; charset='.$cs ],
|
||||
[ 'Content-Transfer-Encoding', 'quoted-printable' ] ],
|
||||
'data' => "ed_encode($body) } :
|
||||
{ 'headers' => [ [ 'Content-type', 'text/plain' ] ],
|
||||
'data' => &entities_to_ascii($body) };
|
||||
'data' => "ed_encode($body) };
|
||||
local $mail = { 'headers' =>
|
||||
[ [ 'From', $from ],
|
||||
[ 'To', $to ],
|
||||
|
||||
Reference in New Issue
Block a user