From 388ba077f65b6dbea77ecdcb2356cbf335f0d5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 10 Jul 2008 20:51:05 +0000 Subject: [PATCH] remove '-' from the list of authorized characters, it's too buggy for production. Closes: #708 --- bureau/class/m_admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 517e5516..869f5cba 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -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) {