From e994749be120e1485f8abd15abddd61791371a02 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Tue, 30 Oct 2012 09:26:03 +0000 Subject: [PATCH] Enleve les espaces en debut et en fin de TLD lors de l'ajout --- bureau/class/m_admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 53088a0a..dc0d7f08 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -939,6 +939,8 @@ EOF; $err->raise("admin",_("The TLD name is mandatory")); return false; } + $tld=trim($tld); + $db->query("SELECT tld FROM tld WHERE tld='$tld';"); if ($db->next_record()) { $err->raise("admin",_("This TLD already exist"));