summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorEddie Hurtig <eddie@hurtigtechnologies.com>2016-09-22 00:54:32 -0400
committerEddie Hurtig <eddie@hurtigtechnologies.com>2016-09-22 00:54:32 -0400
commitc68dbfc7580180cd9d47bdbecaeeb6cf835fe210 (patch)
tree0fdd81b23f88af12ac9fe885842cd4bcfe9694fd /src/usr/local/www/services_dhcp.php
parent4b0815f38a8a0f98519ca0c2bff7c81b6464e579 (diff)
downloadpfsense-c68dbfc7580180cd9d47bdbecaeeb6cf835fe210.zip
pfsense-c68dbfc7580180cd9d47bdbecaeeb6cf835fe210.tar.gz
Allow Hyphens in DHCP NTP Server form validation
Also removes the ability to have underscores `_` in ntp server FQDNs. Closes #6806
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index 5c90fe3..71f70ed 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(
OpenPOWER on IntegriCloud