fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-10-18 10:41 am

[dw-free] move cgi-bin/lj*.pl files into proper modules (in cgi-bin/LJ)

[commit: http://hg.dwscoalition.org/dw-free/rev/460effc534a4]

http://bugs.dwscoalition.org/show_bug.cgi?id=1726

Fix warning from LJ::send_mail.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Sendmail.pm
--------------------------------------------------------------------------------
diff -r 88b20bf4dc78 -r 460effc534a4 cgi-bin/LJ/Sendmail.pm
--- a/cgi-bin/LJ/Sendmail.pm	Tue Oct 18 18:30:10 2011 +0800
+++ b/cgi-bin/LJ/Sendmail.pm	Tue Oct 18 18:41:33 2011 +0800
@@ -118,8 +118,8 @@
 
             $msg = new MIME::Lite ('From'    => $fromname,
                                    'To'      => $clean_name->($opt->{'toname'},   $opt->{'to'}),
-                                   'Cc'      => $opt->{'cc'},
-                                   'Bcc'     => $opt->{'bcc'},
+                                   'Cc'      => $opt->{cc}  || '',
+                                   'Bcc'     => $opt->{bcc} || '',
                                    'Subject' => $subject,
                                    'Type'    => 'multipart/alternative');
 
@@ -143,8 +143,8 @@
             # no html version, do simple email
             $msg = new MIME::Lite ('From'    => $fromname,
                                    'To'      => $clean_name->($opt->{'toname'},   $opt->{'to'}),
-                                   'Cc'      => $opt->{'cc'},
-                                   'Bcc'     => $opt->{'bcc'},
+                                   'Cc'      => $opt->{cc}  || '',
+                                   'Bcc'     => $opt->{bcc} || '',
                                    'Subject' => $subject,
                                    'Type'    => 'text/plain',
                                    'Data'    => $body);
--------------------------------------------------------------------------------