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

Show clear example of function

parent 1ccff148
No related branches found
No related tags found
1 merge request!1172Convert @ and * to full hostname
......@@ -113,12 +113,12 @@ class dns_page_action extends tform_actions {
}
} // end if user is not admin
//* Replace @ to domain name
// Replace @ to example.com.
if(stristr($this->dataRecord["name"], '@')) {
$this->dataRecord["name"] = str_replace('@', $soa['origin'], $this->dataRecord["name"]);
}
//* Replace * to *.example.com.
// Replace * to *.example.com.
if(stristr($this->dataRecord["name"], '*')) {
$this->dataRecord["name"] = str_replace('*', '*.' . $soa['origin'], $this->dataRecord["name"]);
}
......
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