[geeklog-cvs] geeklog-1.3/public_html profiles.php,1.21,1.22

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri May 30 04:16:36 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv11145

Modified Files:
	profiles.php 
Log Message:
Use only the email address as the first parameter to mail() (not "Name <email>", since that seems to cause problems on some setups).


Index: profiles.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/profiles.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** profiles.php	7 Feb 2003 18:34:56 -0000	1.21
--- profiles.php	30 May 2003 08:16:34 -0000	1.22
***************
*** 77,86 ****
              $subject = strip_tags (stripslashes ($subject));
              $subject = substr ($subject, 0, strcspn ($subject, "\r\n"));
!             $RET = @mail($A['username'] . ' <' . $A['email'] . '>', $subject,
                  strip_tags(stripslashes($message)) . $sig,
                  "From: $author <$authoremail>\r\n" .
                  "Return-Path: <$authoremail>\r\n" .
!                 "Content-Type: text/plain; charset=$charset\r\n" .
!                 "X-Mailer: GeekLog " . VERSION);
              $retval .= COM_refresh($_CONF['site_url'] . '/index.php?msg=27');
  		} else {
--- 77,86 ----
              $subject = strip_tags (stripslashes ($subject));
              $subject = substr ($subject, 0, strcspn ($subject, "\r\n"));
!             $RET = @mail($A['email'], $subject,
                  strip_tags(stripslashes($message)) . $sig,
                  "From: $author <$authoremail>\r\n" .
                  "Return-Path: <$authoremail>\r\n" .
!                 "X-Mailer: GeekLog " . VERSION . "\r\n" .
!                 "Content-Type: text/plain; charset=$charset");
              $retval .= COM_refresh($_CONF['site_url'] . '/index.php?msg=27');
  		} else {





More information about the geeklog-cvs mailing list