Sanitize HTML emails
This commit is contained in:
parent
fcf9b6149d
commit
0edf372526
1 changed files with 7 additions and 1 deletions
|
|
@ -188,8 +188,14 @@ class ContactMailer extends Mailer
|
|||
}
|
||||
}
|
||||
|
||||
$body = $this->templateService->processVariables($body, $variables);
|
||||
|
||||
if (Utils::isNinja()) {
|
||||
$body = \HTMLUtils::sanitizeHTML($body);
|
||||
}
|
||||
|
||||
$data = [
|
||||
'body' => $this->templateService->processVariables($body, $variables),
|
||||
'body' => $body,
|
||||
'link' => $invitation->getLink(),
|
||||
'entityType' => $proposal ? ENTITY_PROPOSAL : $invoice->getEntityType(),
|
||||
'invoiceId' => $invoice->id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue