From 7aa3565162b90facf9fb93025bd4cbae0321cff5 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 21 Apr 2011 11:11:46 -0400 Subject: [PATCH] trim invite and confirm addresses --- plugins/EmailRegistration/emailregister.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'); } -- 2.39.2