]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trim the subject line of invite emails
authorCraig Andrews <candrews@integralblue.com>
Mon, 27 Jul 2009 20:02:03 +0000 (16:02 -0400)
committerCraig Andrews <candrews@integralblue.com>
Mon, 27 Jul 2009 20:02:03 +0000 (16:02 -0400)
Thanks semjaza

http://laconi.ca/trac/ticket/1746

actions/invite.php

index bdea4807d8a2f2ac0f7f8c1043d35c6d56d6595d..26c951ed2233d89da409a5c4e7f90d27ad213614 100644 (file)
@@ -216,7 +216,7 @@ class InviteAction extends CurrentUserDesignAction
         $recipients = array($email);
 
         $headers['From'] = mail_notify_from();
-        $headers['To'] = $email;
+        $headers['To'] = trim($email);
         $headers['Subject'] = sprintf(_('%1$s has invited you to join them on %2$s'), $bestname, $sitename);
 
         $body = sprintf(_("%1\$s has invited you to join them on %2\$s (%3\$s).\n\n".