From 71e5ccbb4c2e421d97960842400606d8a5f2080d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 12 Jan 2007 21:53:49 +0000 Subject: [PATCH] fix regexp in login conformity checks. Closes: #1018. Pointy hat to nahuel ([1760]) --- bureau/class/m_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 18520ed6..da86d421 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -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; }