Permalink
Browse files

Allow "." and "-" in usernames.

  • Loading branch information...
1 parent 808a3ba commit 86d64493068b05958cbb9732095e26b554ee8c88 moodler committed Dec 30, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/edit.php
View
@@ -166,7 +166,7 @@ function find_form_errors(&$user, &$usernew, &$err) {
$err["username"] = get_string("usernameexists");
} else {
- $string = eregi_replace("[^([:alnum:])]", "", $user->username);
+ $string = eregi_replace("[^(-\.[:alnum:])]", "", $user->username);
if (strcmp($user->username, $string))
$err["username"] = get_string("alphanumerical");
}

0 comments on commit 86d6449

Please sign in to comment.