From 735a4b82f3eee940dd392668d961ab73cf9ed7e0 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 28 Jun 2006 23:16:33 +0000 Subject: [PATCH] =?UTF-8?q?On=20g=C3=A8re=20la=20lettre=20@=20differement,?= =?UTF-8?q?=20car=20elle=20represente=20le=20mail=20catch=20all=20Closes:?= =?UTF-8?q?=20#694?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_mail.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index d218b231..a85298fc 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -105,7 +105,11 @@ class m_mail { function enum_doms_mails($dom,$sort=0,$letter="") { global $err,$cuid,$db; $err->log("mail","enum_doms_mails",$dom); - $db->query("SELECT mail,pop,alias FROM mail_domain WHERE mail LIKE '".addslashes($letter)."%@".addslashes($dom)."' AND uid='$cuid' AND type=0;"); + if($letter == "@") + $letter = ""; + else + $letter = "%$letter"; + $db->query("SELECT mail,pop,alias FROM mail_domain WHERE mail LIKE '".addslashes($letter)."@".addslashes($dom)."' AND uid='$cuid' AND type=0;"); $res=array(); $i=0; while ($db->next_record()) { if ($db->f("pop")) {