Skip to content

Commit 1926643

Browse files
author
Thom Pol
committed
Apply 1 suggestion(s) to 1 file(s)
1 parent b964204 commit 1926643

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/web/dns/dns_edit_base.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ function onSubmit() {
123123
// Replace * to *.example.com.
124124
if(stristr($this->dataRecord["name"], '*')) {
125125
$this->dataRecord["name"] = str_replace('*', '*.' . $soa['origin'], $this->dataRecord["name"]);
126+
if($this->dataRecord["name"] === '*') {
127+
$this->dataRecord["name"] = '*.' . $soa['origin'];
126128
}
127129

128130
if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>";

0 commit comments

Comments
 (0)