Skip to content
Browse files

MDL-31458 forum: email subjects containing ampersand are sent as &

  • Loading branch information...
1 parent 6791b08 commit f8bed0f64294271323f059a629c93927c6c92b63 @danpoltawski danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -613,7 +613,7 @@ function forum_cron() {
$shortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
- $postsubject = "$shortname: ".format_string($post->subject,true);
+ $postsubject = html_to_text("$shortname: ".format_string($post->subject, true));
$posttext = forum_make_mail_text($course, $cm, $forum, $discussion, $post, $userfrom, $userto);
$posthtml = forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfrom, $userto);

0 comments on commit f8bed0f

Please sign in to comment.
Something went wrong with that request. Please try again.