From c68dbfc7580180cd9d47bdbecaeeb6cf835fe210 Mon Sep 17 00:00:00 2001 From: Eddie Hurtig Date: Thu, 22 Sep 2016 00:54:32 -0400 Subject: [PATCH] Allow Hyphens in DHCP NTP Server form validation Also removes the ability to have underscores `_` in ntp server FQDNs. Closes #6806 --- src/usr/local/www/services_dhcp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php index 5c90fe3154..71f70ed8a4 100644 --- a/src/usr/local/www/services_dhcp.php +++ b/src/usr/local/www/services_dhcp.php @@ -1070,13 +1070,13 @@ $section->addInput(new Form_IpAddress( 'ntp1', 'NTP Server 1', $pconfig['ntp1'] -))->setPattern('[.a-zA-Z0-9_]+'); +))->setPattern('[.a-zA-Z0-9-]+'); $section->addInput(new Form_IpAddress( 'ntp2', 'NTP Server 2', $pconfig['ntp2'] -))->setPattern('[.a-zA-Z0-9_]+'); +))->setPattern('[.a-zA-Z0-9-]+'); // Advanced TFTP $btnadv = new Form_Button(