Skip to content
Snippets Groups Projects
Commit 1ccff148 authored by Thom's avatar Thom :tools:
Browse files

Convert @ and * to full hostname (#5558 and #5463)

parent acb7db0d
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,17 @@ class dns_page_action extends tform_actions {
}
}
} // end if user is not admin
//* Replace @ to domain name
if(stristr($this->dataRecord["name"], '@')) {
$this->dataRecord["name"] = str_replace('@', $soa['origin'], $this->dataRecord["name"]);
}
//* Replace * to *.example.com.
if(stristr($this->dataRecord["name"], '*')) {
$this->dataRecord["name"] = str_replace('*', '*.' . $soa['origin'], $this->dataRecord["name"]);
}
if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>";
// Set the server ID of the rr record to the same server ID as the parent record.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment