Skip to content

Commit

Permalink
Used HTML option variable in system/library/mail as per MB
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 29, 2024
1 parent 32d9bf9 commit 29a6aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upload/system/library/mail/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function send(): bool {
if (!empty($this->option['text'])) {
$message .= chunk_split(base64_encode($this->option['text']), 950) . $eol;
} else {
$message .= chunk_split(base64_encode('This is a HTML email and your email client software does not support HTML email!'), 950) . $eol;
$message .= chunk_split(base64_encode(strip_tags($this->option['html'])), 950) . $eol;
}

$message .= '--' . $boundary . '_alt' . $eol;
Expand Down
2 changes: 1 addition & 1 deletion upload/system/library/mail/smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function send(): bool {
if (!empty($this->option['text'])) {
$message .= chunk_split(base64_encode($this->option['text']), 950) . PHP_EOL;
} else {
$message .= chunk_split(base64_encode('This is a HTML email and your email client software does not support HTML email!'), 950) . PHP_EOL;
$message .= chunk_split(base64_encode(strip_tags($this->option['html'])), 950) . PHP_EOL;
}

$message .= '--' . $boundary . '_alt' . PHP_EOL;
Expand Down

0 comments on commit 29a6aa4

Please sign in to comment.