From: Evan Prodromou Date: Thu, 21 Apr 2011 15:11:46 +0000 (-0400) Subject: trim invite and confirm addresses X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7aa3565162b90facf9fb93025bd4cbae0321cff5;p=quix0rs-gnu-social.git trim invite and confirm addresses --- diff --git a/plugins/EmailRegistration/emailregister.php b/plugins/EmailRegistration/emailregister.php index 3afac7d1f5..d5ccf79f46 100644 --- a/plugins/EmailRegistration/emailregister.php +++ b/plugins/EmailRegistration/emailregister.php @@ -241,9 +241,9 @@ class EmailregisterAction extends Action function setPassword() { if (!empty($this->invitation)) { - $email = $this->invitation->address; + $email = trim($this->invitation->address); } else if (!empty($this->confirmation)) { - $email = $this->confirmation->address; + $email = trim($this->confirmation->address); } else { throw new Exception('No confirmation thing.'); }