Disallowed e-mails as usernames
authorMarcel Werk <burntime@woltlab.com>
Thu, 3 Jul 2014 16:33:11 +0000 (18:33 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 3 Jul 2014 16:33:11 +0000 (18:33 +0200)
wcfsetup/install/files/lib/util/UserUtil.class.php

index b971baf5d1106060f8edcca86f1ad94a584e0673..6553ea887de5bfe237cf53e527e7d8971d3dc36d 100644 (file)
@@ -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;
        }