diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-02-19 22:56:17 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-02-19 22:56:17 +0000 |
commit | c9fc36fcdc584199f800195a5ad9e6c6f9612c7b (patch) | |
tree | 42ff5cb246bbf5c525f2c7f03e839199af3a8d3c /modules | |
parent | aa256d36035c3788b13e0e5c4d7b803dcda6dd92 (diff) | |
download | brdo-c9fc36fcdc584199f800195a5ad9e6c6f9612c7b.tar.gz brdo-c9fc36fcdc584199f800195a5ad9e6c6f9612c7b.tar.bz2 |
- made username check case insensitive.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index 9ca1db161..df2e522bb 100644 --- a/modules/user.module +++ b/modules/user.module @@ -171,7 +171,7 @@ function user_validate_name($name) { 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-z0-9]+(@[a-z0-9]+)?$', $name)) return t("The name contains an illegal character."); + if (!eregi('^[a-z0-9]+(@[a-z0-9]+)?$', $name)) return t("The name contains an illegal character."); if (strlen($name) > 56) return t("The Username '$name' is too long: it must be less than 56 characters."); } diff --git a/modules/user/user.module b/modules/user/user.module index 9ca1db161..df2e522bb 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -171,7 +171,7 @@ function user_validate_name($name) { 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-z0-9]+(@[a-z0-9]+)?$', $name)) return t("The name contains an illegal character."); + if (!eregi('^[a-z0-9]+(@[a-z0-9]+)?$', $name)) return t("The name contains an illegal character."); if (strlen($name) > 56) return t("The Username '$name' is too long: it must be less than 56 characters."); } |