diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-03-09 12:50:34 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-03-09 12:50:34 +0100 |
commit | ba9c057b0126f2c449e16adf5073920b5a663773 (patch) | |
tree | 5ac10139666a4b738d60991af8e80d27eb7e260c /inc/Mailer.class.php | |
parent | 9f3eca0b520fc5f689170108fbcbf490d12f2c2e (diff) | |
download | rpg-ba9c057b0126f2c449e16adf5073920b5a663773.tar.gz rpg-ba9c057b0126f2c449e16adf5073920b5a663773.tar.bz2 |
use real HRs in HTML mails
Diffstat (limited to 'inc/Mailer.class.php')
-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'); |