diff options
-rw-r--r-- | inc/Mailer.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php index 141b69a18..d7dc70ded 100644 --- a/inc/Mailer.class.php +++ b/inc/Mailer.class.php @@ -171,8 +171,10 @@ class Mailer { // create HTML from text if not given if(is_null($html)){ - $html = hsc($text); - $html = nl2br($text); + $html = $text; + $html = hsc($html); + $html = preg_replace('/^-----*$/m','<hr >',$html); + $html = nl2br($html); } if($wrap){ $wrap = rawLocale('mailwrap','html'); |