fix regexp in login conformity checks. Closes: #1018. Pointy hat to nahuel ([1760])

This commit is contained in:
Antoine Beaupré 2007-01-12 21:53:49 +00:00
parent a5cdc58485
commit 71e5ccbb4c
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class m_admin {
}
// Vérification de la conformité du login
$login=strtolower($login);
if (!ereg("^[a-z-0-9]*$",$login)) { //$
if (!ereg("^[a-z0-9-]*$",$login)) { //$
$err->raise("admin",10);
return false;
}