Skip to content

Commit

Permalink
Fixed issue 16037: Trim entered e-mail addresses (#1401)
Browse files Browse the repository at this point in the history
Dev: Smartphone keyboards often enter additional whitesspaces, trim them.
  • Loading branch information
fkroener committed Mar 27, 2020
1 parent 3a9f30f commit 435bbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/RegisterController.php
Expand Up @@ -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
Expand Down

0 comments on commit 435bbf6

Please sign in to comment.