From: Sascha Greuel Date: Thu, 15 Oct 2015 17:15:53 +0000 (+0200) Subject: Fixed email comparison on user edit X-Git-Tag: 2.1.8~19^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b3d5e42558f606d222017cd4bdb7c6524e64559;p=GitHub%2FWoltLab%2FWCF.git Fixed email comparison on user edit --- 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); }