Skip to content

Commit

Permalink
[user_accounts] Revert aces#2018 - Sanitization before validation of …
Browse files Browse the repository at this point in the history
…email falsifies validity
  • Loading branch information
ridz1208 committed Jul 12, 2022
1 parent 2e32249 commit 570d82c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/user_accounts/php/edit_user.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,6 @@ class Edit_User extends \NDB_Form
*/
private function _getEmailError(\Database $DB, string $email): ?string
{
// remove illegal characters
$email = filter_var($email, FILTER_SANITIZE_EMAIL);
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
// If email not syntactically valid
return "Invalid email address";
Expand Down

0 comments on commit 570d82c

Please sign in to comment.