From d3d127e4896f7cfbec5699639ac481ccd38f0f03 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 3 Jul 2014 18:33:11 +0200 Subject: [PATCH] Disallowed e-mails as usernames --- wcfsetup/install/files/lib/util/UserUtil.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/util/UserUtil.class.php b/wcfsetup/install/files/lib/util/UserUtil.class.php index b971baf5d1..6553ea887d 100644 --- a/wcfsetup/install/files/lib/util/UserUtil.class.php +++ b/wcfsetup/install/files/lib/util/UserUtil.class.php @@ -36,6 +36,11 @@ final class UserUtil { return false; } } + // username must not be a valid e-mail + if (self::isValidEmail($name)) { + return false; + } + return true; } -- 2.20.1