Skip to content

Commit 59df925

Browse files
committed
Replace @ to example.com. in data field (#5943)
1 parent 5f1e170 commit 59df925

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interface/web/dns/dns_edit_base.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ function onSubmit() {
117117
if($this->dataRecord["name"] === '@') {
118118
$this->dataRecord["name"] = $soa['origin'];
119119
}
120+
if($this->dataRecord["data"] === '@') {
121+
$this->dataRecord["data"] = $soa['origin'];
122+
}
120123

121124
// Replace * to *.example.com.
122125
if($this->dataRecord["name"] === '*') {

0 commit comments

Comments
 (0)