Skip to content

Commit

Permalink
Fix subject lines and corrupted emails from messages MDL-13364
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 7, 2008
1 parent 2eb9cce commit a017dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions message/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a017dea

Please sign in to comment.