Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[ljcom] r12435: LJSUP-13120: No linebreaks in mass maili...

Committer: amyshkin
LJSUP-13120: No linebreaks in mass mailing
U   trunk/cgi-bin/LJ/Hooks/ESN.pm
Modified: trunk/cgi-bin/LJ/Hooks/ESN.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-08-07 11:44:33 UTC (rev 12434)
+++ trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-08-07 12:01:31 UTC (rev 12435)
@@ -76,6 +76,7 @@
     };
 
     unless ( $u->{opt_htmlemail} eq 'N' ) {
+        $html_body =~ s/\n/\n<br\/>/g unless $html_body =~ m!<br!i;
         $mail_param->{'html'} = $html_body;
     }
 

Tags: amyshkin, ljcom, pm, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments