Skip to content

Commit b964204

Browse files
author
Thom Pol
committed
Apply 1 suggestion(s) to 1 file(s)
1 parent c08601c commit b964204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/web/dns/dns_edit_base.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ function onSubmit() {
116116
// Replace @ to example.com.
117117
if(stristr($this->dataRecord["name"], '@')) {
118118
$this->dataRecord["name"] = str_replace('@', $soa['origin'], $this->dataRecord["name"]);
119+
if($this->dataRecord["name"] === '@') {
120+
$this->dataRecord["name"] = $soa['origin'];
119121
}
120122

121123
// Replace * to *.example.com.

0 commit comments

Comments
 (0)