remove '-' from the list of authorized characters, it's too buggy for production.
Closes: #708
This commit is contained in:
parent
eda30563e3
commit
388ba077f6
|
@ -241,8 +241,8 @@ class m_admin {
|
|||
}
|
||||
// Vérification de la conformité du login
|
||||
$login=strtolower($login);
|
||||
if (!ereg("^[a-z0-9-]*$",$login)) { //$
|
||||
$err->raise("admin",10);
|
||||
if (!ereg("^[a-z0-9]*$",$login)) { //$
|
||||
$err->raise("admin", "Login can only contains characters a-z and 0-9");
|
||||
return false;
|
||||
}
|
||||
if (strlen($login) > 16) {
|
||||
|
|
Loading…
Reference in New Issue