mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow Hyphens in DHCP NTP Server form validation
Also removes the ability to have underscores `_` in ntp server FQDNs. Closes #6806
This commit is contained in:
parent
4b0815f38a
commit
c68dbfc758
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user