fix regexp in login conformity checks. Closes: #1018. Pointy hat to nahuel ([1760])
This commit is contained in:
parent
a5cdc58485
commit
71e5ccbb4c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue