diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-05-04 08:00:23 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-05-04 08:03:24 -0400 |
commit | 794534b468c77dd984624cdf864c5e4e8c34b8b4 (patch) | |
tree | b8007a47a1a194fcec5eaa9c7c0ec533ef91e40d | |
parent | 7a5ab9e2ec0dbd5315e13070695c502c18c3024b (diff) | |
download | pfsense-794534b468c77dd984624cdf864c5e4e8c34b8b4.zip pfsense-794534b468c77dd984624cdf864c5e4e8c34b8b4.tar.gz |
Fixed #6310 by adding cusom validation pattern
(cherry picked from commit 1929ff88e91b2e495f8d22c74138721133afbd1f)
-rw-r--r-- | src/usr/local/www/services_dnsmasq_domainoverride_edit.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/services_dnsmasq_domainoverride_edit.php b/src/usr/local/www/services_dnsmasq_domainoverride_edit.php index 806a0f0..9e4670a 100644 --- a/src/usr/local/www/services_dnsmasq_domainoverride_edit.php +++ b/src/usr/local/www/services_dnsmasq_domainoverride_edit.php @@ -174,7 +174,8 @@ $section->addInput(new Form_IpAddress( 'ip', 'IP Address', $pconfig['ip'] -))->setHelp('IP address of the authoritative DNS server for this domain' . '<br />' . +))->setPattern('[a-f0-9:.#!]*') + ->setHelp('IP address of the authoritative DNS server for this domain' . '<br />' . 'e.g.: 192.168.100.100' . '<br />' . 'Or enter # for an exclusion to pass through this host/subdomain to standard nameservers instead of a previous override.' . '<br />' . 'Or enter ! for lookups for this host/subdomain to NOT be forwarded anywhere.'); |