Commit 65e6185b authored by Nigel McNie's avatar Nigel McNie
Browse files

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

parent 823ab316
......@@ -333,7 +333,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