collapse multiple spaces in usernames
This commit is contained in:
parent
ad5b976978
commit
ae0275ec2c
|
@ -71,6 +71,8 @@ function register_post(&$a) {
|
|||
|
||||
$err = '';
|
||||
|
||||
// collapse multiple spaces in name
|
||||
$username = preg_replace('/ +/',' ',$username);
|
||||
|
||||
if(mb_strlen($username) > 48)
|
||||
$err .= t('Please use a shorter name.') . EOL;
|
||||
|
@ -93,6 +95,7 @@ function register_post(&$a) {
|
|||
$err .= t("That doesn't appear to be your full \x28First Last\x29 name.") . EOL;
|
||||
}
|
||||
|
||||
|
||||
if(! allowed_email($email))
|
||||
$err .= t('Your email domain is not among those allowed on this site.') . EOL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user