Fixed not being able to save custom and custom-v6 dyndns

entries due to "host" being posted empty, and thus failing
is_domain() check.
This commit is contained in:
Tuyan Ozipek 2015-02-01 20:04:37 -05:00 committed by Tuyan Ozipek
parent 1c4540dcac
commit f2b769d01d

View File

@ -111,7 +111,7 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
if (isset($_POST['host'])) {
if (isset($_POST['host']) && in_array("host", $reqdfields)) {
/* Namecheap can have a @. in hostname */
if ($pconfig['type'] == "namecheap" && substr($_POST['host'], 0, 2) == '@.')
$host_to_check = substr($_POST['host'], 2);