Commit 5b3592a0 authored by Nigel McNie's avatar Nigel McNie
Browse files

HTML escape the debug email notice HTML message so the email shows up.

(cherry picked from commit 65e6185b)
parent 6c6d35cf
......@@ -339,7 +339,7 @@ function email_user($userto, $userfrom, $subject, $messagetext, $messagehtml='',
$notice = get_string('debugemail', 'mahara', display_name($userto, $userto), $userto->email);
$messagetext = $notice . "\n\n" . $messagetext;
if ($messagehtml) {
$messagehtml = '<p>' . $notice . '</p>' . $messagehtml;
$messagehtml = '<p>' . hsc($notice) . '</p>' . $messagehtml;
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment