Permalink
Browse files

Fix subject lines and corrupted emails from messages MDL-13364

  • Loading branch information...
1 parent a6a7814 commit 67574a93c5ccc8d9cab3d095992dee9fb148fbfa moodler committed Feb 7, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 message/lib.php
View
@@ -967,6 +967,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 67574a9

Please sign in to comment.