remove '-' from the list of authorized characters, it's too buggy for production.

Closes: #708
This commit is contained in:
Antoine Beaupré 2008-07-10 20:51:05 +00:00
parent eda30563e3
commit 388ba077f6
1 changed files with 2 additions and 2 deletions

View File

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