diff --git a/application/controllers/RegisterController.php b/application/controllers/RegisterController.php index ae50596f634..518f60f7528 100644 --- a/application/controllers/RegisterController.php +++ b/application/controllers/RegisterController.php @@ -174,7 +174,7 @@ public function getRegisterErrors($iSurveyId) //Check that the email is a valid style address if ($aFieldValue['sEmail'] == "") { $this->aRegisterErrors[] = gT("You must enter a valid email. Please try again."); - } elseif (!validateEmailAddress($aFieldValue['sEmail'])) { + } elseif (!validateEmailAddress(trim($aFieldValue['sEmail']))) { $this->aRegisterErrors[] = gT("The email you used is not valid. Please try again."); } //Check and validate attribute