dns/rfc2136: allow trailing dot in keyname #3510

This commit is contained in:
Franco Fichtner
2023-07-24 10:37:59 +02:00
parent 9afb89ba66
commit dd511eaa59
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= rfc2136
PLUGIN_VERSION= 1.8
PLUGIN_REVISION= 1
PLUGIN_COMMENT= RFC-2136 Support
PLUGIN_MAINTAINER= franco@opnsense.org
PLUGIN_DEPENDS= bind-tools
@@ -87,7 +87,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!empty($pconfig['ttl']) && !is_numericint($pconfig['ttl'])) {
$input_errors[] = gettext("The DNS update TTL must be an integer.");
}
if (!empty($pconfig['keyname']) && !is_domain($pconfig['keyname'])) {
if (!empty($pconfig['keyname']) && !is_domain(preg_replace('/\.$/', '', $pconfig['keyname']))) {
$input_errors[] = gettext("The DNS update key name contains invalid characters.");
}
if (!in_array($pconfig['keyalgo'] , array_keys($nsukeyalgos))) {