diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 21da6fde..cb4d1759 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -254,7 +254,7 @@ class m_admin { $err->raise("admin",10); return false; } - $pass=stripslashes($pass); + //$pass=stripslashes($pass); $pass=_md5cr($pass); $db=new DB_System(); // vérification de l'inexistence du membre dans system.membres diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index dd17bab4..c1872a84 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -71,7 +71,6 @@ class m_mem { $err->log("mem","login",$username); // $username=addslashes($username); // $password=addslashes($password); - $password=stripslashes($password); $db->query("select * from membres where login='$username';"); if ($db->num_rows()==0) { $err->raise("mem",1); @@ -82,7 +81,7 @@ class m_mem { $db->query("UPDATE membres SET lastfail=lastfail+1 WHERE uid='".$db->f("uid")."';"); $err->raise("mem",1); return false; - } + } if (!$db->f("enabled")) { $err->raise("mem",2); return false;