mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
services_dhcpv6.php, validation issue in ddnsdomainprimary https://github.com/opnsense/core/issues/3546
This commit is contained in:
parent
c5c6bb1601
commit
9bf07564b7
@ -153,7 +153,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (!empty($pconfig['ddnsdomain']) && !is_domain($pconfig['ddnsdomain'])) {
|
||||
$input_errors[] = gettext("A valid domain name must be specified for the dynamic DNS registration.");
|
||||
}
|
||||
if (!empty($pconfig['ddnsdomain']) && !is_ipaddrv4($pconfig['ddnsdomainprimary'])) {
|
||||
if (!empty($pconfig['ddnsdomainprimary']) && !is_ipaddrv6($pconfig['ddnsdomainprimary'])) {
|
||||
$input_errors[] = gettext("A valid primary domain name server IPv6 address must be specified for the dynamic domain name.");
|
||||
}
|
||||
if (!empty($pconfig['ddnsdomainkey']) && base64_encode(base64_decode($pconfig['ddnsdomainkey'], true)) !== $pconfig['ddnsdomainkey']) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user