]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trim invite and confirm addresses
authorEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 15:11:46 +0000 (11:11 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 15:11:46 +0000 (11:11 -0400)
plugins/EmailRegistration/emailregister.php

index 3afac7d1f57cf296abba7e5d6964c5e8ed374776..d5ccf79f46f48a2329c3fd788ef8461dba1c1036 100644 (file)
@@ -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.');
         }