summaryrefslogtreecommitdiff
path: root/inc/Mailer.class.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-03-09 12:50:34 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-03-09 12:50:34 +0100
commitba9c057b0126f2c449e16adf5073920b5a663773 (patch)
tree5ac10139666a4b738d60991af8e80d27eb7e260c /inc/Mailer.class.php
parent9f3eca0b520fc5f689170108fbcbf490d12f2c2e (diff)
downloadrpg-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.php6
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');