diff --git a/interface/web/dns/dns_edit_base.php b/interface/web/dns/dns_edit_base.php index f12c38e81845911614f3192144ffa165f544e987..a94bd54946d3cc0fe67d28d6361863ad6a21908a 100644 --- a/interface/web/dns/dns_edit_base.php +++ b/interface/web/dns/dns_edit_base.php @@ -114,13 +114,13 @@ class dns_page_action extends tform_actions { } // end if user is not admin // 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']; } // 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")."
";