From 9fe3d9c46adce61a0e3e5438187efaaa670b165a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 26 Jul 2003 18:01:14 +0000 Subject: - Fixed bug in user_validate_name(): . (dot) should be allowed for DA to work. Fixes bug #107. --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.module') 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)); } -- cgit v1.2.3