X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=www%2Fplugins%2Ffacteur%2Fphpmailer-php5%2Fclass.phpmailer.php;fp=www%2Fplugins%2Ffacteur%2Fphpmailer-php5%2Fclass.phpmailer.php;h=65baf42ccb745dc7e698474e05961441048030db;hb=94bf708c1d33740fb69957c922eb2bccacc2fa63;hp=9cdd0f31f01c5bcc52b75cc8221e64c9fc26cc0d;hpb=d8b7931e7a1ecffac4ce5cabaf9055d49df5a1f5;p=lhc%2Fweb%2Fwww.git diff --git a/www/plugins/facteur/phpmailer-php5/class.phpmailer.php b/www/plugins/facteur/phpmailer-php5/class.phpmailer.php index 9cdd0f31..65baf42c 100755 --- a/www/plugins/facteur/phpmailer-php5/class.phpmailer.php +++ b/www/plugins/facteur/phpmailer-php5/class.phpmailer.php @@ -1158,7 +1158,7 @@ class PHPMailer { switch($this->message_type) { case 'plain': $result .= $this->HeaderLine('Content-Transfer-Encoding', $this->Encoding); - $result .= sprintf("Content-Type: %s; charset=\"%s\"", $this->ContentType, $this->CharSet); + $result .= sprintf("Content-Type: %s; charset=%s", $this->ContentType, $this->CharSet); break; case 'attachments': case 'alt_attachments': @@ -1272,7 +1272,7 @@ class PHPMailer { $encoding = $this->Encoding; } $result .= $this->TextLine('--' . $boundary); - $result .= sprintf("Content-Type: %s; charset = \"%s\"", $contentType, $charSet); + $result .= sprintf("Content-Type: %s; charset=%s", $contentType, $charSet); $result .= $this->LE; $result .= $this->HeaderLine('Content-Transfer-Encoding', $encoding); $result .= $this->LE; @@ -2024,7 +2024,7 @@ class PHPMailer { $this->Body = $message; $textMsg = trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s','',$message))); if (!empty($textMsg) && empty($this->AltBody)) { - $this->AltBody = html_entity_decode($textMsg); + $this->AltBody = html_entity_decode($textMsg,ENT_COMPAT | ENT_HTML401, strtoupper($this->CharSet)); } if (empty($this->AltBody)) { $this->AltBody = 'To view this email message, open it in a program that understands HTML!' . "\n\n"; @@ -2317,4 +2317,4 @@ class phpmailerException extends Exception { return $errorMsg; } } -?> \ No newline at end of file +?>