Allow wildcard for hostname with Namecheap DDNS. Ticket #6260

This commit is contained in:
Chris Buechler 2016-06-30 01:20:17 -05:00
parent 0015e84cf4
commit 84a67bf406

View File

@ -146,8 +146,8 @@ if ($_POST) {
}
if (isset($_POST['host']) && in_array("host", $reqdfields)) {
/* Namecheap can have a @. in hostname */
if ($pconfig['type'] == "namecheap" && ($_POST['host'] == '@.' || $_POST['host'] == '@')) {
/* Namecheap can have a @. and *. in hostname */
if ($pconfig['type'] == "namecheap" && ($_POST['host'] == '*.' || $_POST['host'] == '*' || $_POST['host'] == '@.' || $_POST['host'] == '@')) {
$host_to_check = $_POST['domainname'];
} else {
$host_to_check = $_POST['host'];