Skip to content

Commit 5e7c3ee

Browse files
author
Till Brehm
committed
Merge branch '5558-dns-symbol' into 'develop'
Convert @ and * to full hostname Closes #5463 and #5558 See merge request ispconfig/ispconfig3!1172
2 parents 517e8df + e5f24d5 commit 5e7c3ee

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

interface/web/dns/dns_edit_base.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,17 @@ function onSubmit() {
112112
}
113113
}
114114
} // end if user is not admin
115-
115+
116+
// Replace @ to example.com.
117+
if($this->dataRecord["name"] === '@') {
118+
$this->dataRecord["name"] = $soa['origin'];
119+
}
120+
121+
// Replace * to *.example.com.
122+
if($this->dataRecord["name"] === '*') {
123+
$this->dataRecord["name"] = '*.' . $soa['origin'];
124+
}
125+
116126
if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>";
117127

118128
// Set the server ID of the rr record to the same server ID as the parent record.

0 commit comments

Comments
 (0)