From 10e2e6556a216b9ff2a049bde0a98e349ad76fff Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 30 Oct 2012 16:34:27 +0000 Subject: [PATCH] * Notifications: activate links when creating a html mail from a plain-text one --- notifications/inc/class.notifications.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifications/inc/class.notifications.inc.php b/notifications/inc/class.notifications.inc.php index 518ea4ffa9..27f27ab11f 100644 --- a/notifications/inc/class.notifications.inc.php +++ b/notifications/inc/class.notifications.inc.php @@ -554,7 +554,7 @@ final class notifications { if(!empty($_message_plain)) { $messages['plain'] = $_message_plain; } else { - $messages['plain'] = strip_tags($_message_html); + $messages['plain'] = translation::convertHTMLToText($_message_html, false, true); } if(!empty($_message_html)) { @@ -574,7 +574,7 @@ final class notifications { */ public static function plain2html($_plain) { - return nl2br(html::htmlspecialchars($_plain, true)); + return html::activate_links(nl2br(html::htmlspecialchars($_plain, true))); } /**