From 570d82cdd1eeb9b0889779b8b6e6a74c0d9a8bbb Mon Sep 17 00:00:00 2001 From: ridz1208 Date: Tue, 12 Jul 2022 13:35:11 -0400 Subject: [PATCH] [user_accounts] Revert #2018 - Sanitization before validation of email falsifies validity --- modules/user_accounts/php/edit_user.class.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/user_accounts/php/edit_user.class.inc b/modules/user_accounts/php/edit_user.class.inc index a7348f93bc9..d7a13713886 100644 --- a/modules/user_accounts/php/edit_user.class.inc +++ b/modules/user_accounts/php/edit_user.class.inc @@ -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";