From 4fee51336f65f92f1026274ec3cb74b01cbdef1e Mon Sep 17 00:00:00 2001 From: Oliver Behnke Date: Wed, 30 Jun 2021 11:36:10 +0000 Subject: [PATCH] Transform HTML body into plain text, if any --- .../boinc/modules/boincteam/includes/boincteam.forms.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drupal/sites/default/boinc/modules/boincteam/includes/boincteam.forms.inc b/drupal/sites/default/boinc/modules/boincteam/includes/boincteam.forms.inc index 5200cc6c07..94cc473189 100644 --- a/drupal/sites/default/boinc/modules/boincteam/includes/boincteam.forms.inc +++ b/drupal/sites/default/boinc/modules/boincteam/includes/boincteam.forms.inc @@ -826,6 +826,9 @@ function boincteam_sendmessagetoteam_submit($form, &$form_state) { . "To reply to the sender using a Direct Message (DM), please use this link:\n" . "${site_url}"; + // Transform HTML body into plain text + $mybody = drupal_html_to_text($mybody); + $emailsettings = array( 'from' => '', 'to' => "webmaster@{$base_url}",