Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix subject lines and corrupted emails from messages MDL-13364 (merged)

  • Loading branch information...
commit 947d915a8f7e4c2293203b0c90b465cf7aa4ee2b 1 parent d375026
moodler authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  message/lib.php
1  message/lib.php
View
@@ -1000,6 +1000,7 @@ function message_post_message($userfrom, $userto, $message, $format, $messagetyp
$tagline = get_string('emailtagline', 'message', $SITE->shortname);
$messagesubject = message_shorten_message(strip_tags($message), 30).'...';
+ $messagesubject = str_replace("\n", ' ', $messagesubject); // make sure it's all on one line
$messagetext = format_text_email($message, $format).
"\n\n--\n".$tagline."\n"."$CFG->wwwroot/message/index.php?popup=1";
Please sign in to comment.
Something went wrong with that request. Please try again.