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"));