From: Craig Andrews Date: Mon, 27 Jul 2009 20:02:03 +0000 (-0400) Subject: trim the subject line of invite emails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e804b2a500959289e233cd6ca80979c40400d9a0;p=quix0rs-gnu-social.git trim the subject line of invite emails Thanks semjaza http://laconi.ca/trac/ticket/1746 --- diff --git a/actions/invite.php b/actions/invite.php index bdea4807d8..26c951ed22 100644 --- a/actions/invite.php +++ b/actions/invite.php @@ -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".