mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
1c4540dcac
commit
f2b769d01d
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user