We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acb7db0 commit 1ccff14Copy full SHA for 1ccff14
interface/web/dns/dns_edit_base.php
@@ -112,7 +112,17 @@ function onSubmit() {
112
}
113
114
} // end if user is not admin
115
-
+
116
+ //* Replace @ to domain name
117
+ if(stristr($this->dataRecord["name"], '@')) {
118
+ $this->dataRecord["name"] = str_replace('@', $soa['origin'], $this->dataRecord["name"]);
119
+ }
120
121
+ //* Replace * to *.example.com.
122
+ if(stristr($this->dataRecord["name"], '*')) {
123
+ $this->dataRecord["name"] = str_replace('*', '*.' . $soa['origin'], $this->dataRecord["name"]);
124
125
126
if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>";
127
128
// Set the server ID of the rr record to the same server ID as the parent record.
0 commit comments