From 2f4514a3b243ea450d42de7ddbd940d64a2593e3 Mon Sep 17 00:00:00 2001 From: Andreas Rupper <61623186+andreas-rupper@users.noreply.github.com> Date: Thu, 2 Jul 2020 06:53:36 +0200 Subject: [PATCH] dns/dyndns: added not empty validation (#1903) --- dns/dyndns/src/www/services_dyndns_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/dyndns/src/www/services_dyndns_edit.php b/dns/dyndns/src/www/services_dyndns_edit.php index bf3d92e87..d13e55212 100644 --- a/dns/dyndns/src/www/services_dyndns_edit.php +++ b/dns/dyndns/src/www/services_dyndns_edit.php @@ -139,7 +139,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $input_errors[] = gettext("The username contains invalid characters."); } - if ((string)((int)$pconfig['ttl']) != $pconfig['ttl']) { + if (!empty($pconfig['ttl']) && (string)((int)$pconfig['ttl']) != $pconfig['ttl']) { $input_errors[] = gettext("The TTL value needs to be a valid integer number."); }