diff --git a/fiche-rec-tab1.php b/fiche-rec-tab1.php index 4d55f06..de2b8f8 100644 --- a/fiche-rec-tab1.php +++ b/fiche-rec-tab1.php @@ -147,7 +147,7 @@ do { $mailObject->sendcc_thirdparty = in_array('thirdparty', GETPOST('sendcc_socpeople', 'array')); $mailObject->subject = GETPOST('subject', 'alpha'); - $mailObject->body = GETPOST('body', 'alpha'); + $mailObject->body = GETPOST('body', 'restricthtml'); $mailObject->body_ishtml = (int)GETPOST('body_ishtml', 'int'); // Save into database @@ -300,16 +300,15 @@ do { $output .= ''; $output .= $form->textwithpicto($langs->trans("MailText"), $helpforsubstitution, 1, 'help', '', 0, 2, 'substittooltipfrombody'); $output .= "\n"; - /* - // doleditor does some weird stuff, adding
and newlines, I'll get more into it when I have time. - // fallback to simple \n"; + + // $output .= '\n"; $output .= "\n"; // body_ishtml @@ -337,4 +336,4 @@ do { // Print everything llxHeader('', $langs->trans('RepeatableInvoice') . ' - ' . $langs->trans('SendingByMail'), ''); print $output; -llxFooter(); +llxFooter(); \ No newline at end of file