Permalink
Browse files

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

  • Loading branch information...
1 parent 678165c commit 2bff64d017632e7852743e32d60d9e2ec8d0ae47 moodler committed Feb 7, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 message/lib.php
View
@@ -994,6 +994,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";

0 comments on commit 2bff64d

Please sign in to comment.