mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/rfc2136: allow trailing dot in keyname #3510
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user