summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-26 18:01:14 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-26 18:01:14 +0000
commit9fe3d9c46adce61a0e3e5438187efaaa670b165a (patch)
tree1f39a7fba9869fc5c51819f88834dac0132b5c67 /modules/user
parent30337a7d2946a9e24d1884c4d2371e429be4467d (diff)
downloadbrdo-9fe3d9c46adce61a0e3e5438187efaaa670b165a.tar.gz
brdo-9fe3d9c46adce61a0e3e5438187efaaa670b165a.tar.bz2
- Fixed bug in user_validate_name(): . (dot) should be allowed for DA to work.
Fixes bug #107.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 5c87b2a09..e150e46ba 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -181,7 +181,7 @@ function user_validate_name($name) {
if (ereg("^ ", $name)) return t("The username cannot begin with a space.");
if (ereg(" \$", $name)) return t("The username cannot end with a space.");
if (ereg(" ", $name)) return t("The username cannot contain multiple spaces in a row.");
- if (ereg("[^ a-zA-Z0-9@-@]", $name)) return t("The username contains an illegal character.");
+ if (ereg("[^ a-zA-Z0-9@_\.\-]", $name)) return t("The username contains an illegal character.");
if (ereg('@', $name) && !eregi('@([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$', $name)) return t("The username is not a valid authentication ID.");
if (strlen($name) > 56) return t("The username '%name' is too long: it must be less than 56 characters.", array("%name" => $name));
}