Enleve les espaces en debut et en fin de TLD lors de l'ajout

This commit is contained in:
Alan Garcia 2012-10-30 09:26:03 +00:00
parent 6873e79b23
commit e994749be1
1 changed files with 2 additions and 0 deletions

View File

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