summaryrefslogtreecommitdiff
path: root/actions/invite.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/invite.php')
-rw-r--r--actions/invite.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/invite.php b/actions/invite.php
index bdea4807d..26c951ed2 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".