From 39a926a84e9b6eb3c0c1da66972bef357dca8f50 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 23 Sep 2018 20:32:33 +0200 Subject: [PATCH] dns/dyndns: wildcard for namecheap; closes #586 --- dns/dyndns/src/www/services_dyndns_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/dyndns/src/www/services_dyndns_edit.php b/dns/dyndns/src/www/services_dyndns_edit.php index 14675eff7..2e734f9b2 100644 --- a/dns/dyndns/src/www/services_dyndns_edit.php +++ b/dns/dyndns/src/www/services_dyndns_edit.php @@ -102,8 +102,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors); if (isset($pconfig['host']) && in_array('host', $reqdfields)) { - /* Namecheap can have a @. in hostname */ - if ($pconfig['type'] == "namecheap" && substr($pconfig['host'], 0, 2) == '@.') { + /* Namecheap can have a @. or *. in hostname */ + if ($pconfig['type'] == "namecheap" && (substr($pconfig['host'], 0, 2) == '@.' || substr($pconfig['host'], 0, 2) == '*.')) { $host_to_check = substr($pconfig['host'], 2); } else { $host_to_check = $pconfig['host'];