From b964204b0aee501f69d46c14ec9ccda8ef916bbb Mon Sep 17 00:00:00 2001 From: Thom Pol Date: Tue, 15 Sep 2020 14:15:59 +0200 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- interface/web/dns/dns_edit_base.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/web/dns/dns_edit_base.php b/interface/web/dns/dns_edit_base.php index f12c38e81..b9ce121cf 100644 --- a/interface/web/dns/dns_edit_base.php +++ b/interface/web/dns/dns_edit_base.php @@ -116,6 +116,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']; } // Replace * to *.example.com. -- GitLab