From 4b3d5e42558f606d222017cd4bdb7c6524e64559 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Thu, 15 Oct 2015 19:15:53 +0200 Subject: [PATCH] Fixed email comparison on user edit --- wcfsetup/install/files/lib/acp/form/UserEditForm.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php index 9bdc82cf6a..8d5c7ea756 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php @@ -386,6 +386,11 @@ class UserEditForm extends UserAddForm { * @see \wcf\acp\form\UserAddForm::validateEmail() */ protected function validateEmail($email, $confirmEmail) { + // check confirm input + if (mb_strtolower($email) != mb_strtolower($confirmEmail)) { + throw new UserInputException('confirmEmail', 'notEqual'); + } + if (mb_strtolower($this->user->email) != mb_strtolower($email)) { parent::validateEmail($email, $this->confirmEmail); } -- 2.20.1