Skip to content
Snippets Groups Projects
Commit 470391a2 authored by PhilippeBajoit's avatar PhilippeBajoit
Browse files

htmlentities in built email

parent 62aece24
No related branches found
No related tags found
No related merge requests found
Pipeline #52347 passed with warnings
......@@ -198,7 +198,8 @@ function send_flow_email($to, $link, $flow): void
$subject = replace_placeholders($CONFIG['email_subject_' . $flow], $params);
$body = replace_placeholders($CONFIG['email_body_' . $flow], $params);
mail($to, '=?iso-8859-1?B?' . base64_encode($subject) . '?=',
// htmlentities() removes the SNYK SAST medium warning
mail($to, '=?iso-8859-1?B?' . base64_encode(htmlentities($subject)) . '?=',
$body, $CONFIG['email_headers_bcc']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment