diff --git a/interface/web/dns/dns_edit_base.php b/interface/web/dns/dns_edit_base.php index b9ce121cf638fc6ea7ec49633e0ac44744bb7bab..1768cddb43ebce24371dbee15bfbefec5f17215f 100644 --- a/interface/web/dns/dns_edit_base.php +++ b/interface/web/dns/dns_edit_base.php @@ -123,6 +123,8 @@ class dns_page_action extends tform_actions { // Replace * to *.example.com. if(stristr($this->dataRecord["name"], '*')) { $this->dataRecord["name"] = str_replace('*', '*.' . $soa['origin'], $this->dataRecord["name"]); + if($this->dataRecord["name"] === '*') { + $this->dataRecord["name"] = '*.' . $soa['origin']; } if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."
";