Skip to content

Commit

Permalink
fix(backend): prevent special characters from being converted into th…
Browse files Browse the repository at this point in the history
…eir corresponding HTML entities in a composed text message. (#1432)
  • Loading branch information
mercihabam authored Jan 27, 2025
1 parent 8447c85 commit 36fcc93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/smtp/hm-mime-message.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ function format_message_text($body) {
function prep_message_body() {
$body = $this->body;
if (!$this->html) {
$body = htmlspecialchars(trim($body), ENT_QUOTES | ENT_HTML5, 'UTF-8');
if (!empty($this->attachments)) {
$this->headers['Content-Type'] = 'multipart/mixed; boundary='.$this->boundary;
$body = sprintf("--%s\r\nContent-Type: text/plain; charset=UTF-8; format=flowed\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n%s",
Expand Down

0 comments on commit 36fcc93

Please sign in to comment.