summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_unbound_domainoverride_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-04-26 00:45:09 -0500
committerChris Buechler <cmb@pfsense.org>2016-04-26 00:45:59 -0500
commit2ec9afb7f374ada28353ddbcfa97a99a0f98bdfd (patch)
treeb369987354590209449c8e4641c95cab98369a6c /src/usr/local/www/services_unbound_domainoverride_edit.php
parentd931d66d36cb1175a3674915d832376a4e9adfeb (diff)
downloadpfsense-2ec9afb7f374ada28353ddbcfa97a99a0f98bdfd.zip
pfsense-2ec9afb7f374ada28353ddbcfa97a99a0f98bdfd.tar.gz
Allow port specification for Unbound domain overrides. Also fix display of input errors. Ticket #6091
Diffstat (limited to 'src/usr/local/www/services_unbound_domainoverride_edit.php')
-rw-r--r--src/usr/local/www/services_unbound_domainoverride_edit.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/www/services_unbound_domainoverride_edit.php b/src/usr/local/www/services_unbound_domainoverride_edit.php
index d73a165..ed64580 100644
--- a/src/usr/local/www/services_unbound_domainoverride_edit.php
+++ b/src/usr/local/www/services_unbound_domainoverride_edit.php
@@ -146,6 +146,10 @@ $pgtitle = array(gettext("Services"), gettext("DNS Resolver"), gettext("General
$shortcut_section = "resolver";
include("head.inc");
+if ($input_errors) {
+ print_input_errors($input_errors);
+}
+
$form = new Form();
$section = new Form_Section('Domain Override');
@@ -162,7 +166,7 @@ $section->addInput(new Form_IpAddress(
'IP Address',
$pconfig['ip']
))->setHelp('IP address of the authoritative DNS server for this domain. e.g.: 192.168.100.100' . '<br />' .
- 'To use a nondefault port for communication, append an \'@\' with the port number.');
+ 'To use a non-default port for communication, append an \'@\' with the port number.')->setPattern('[a-zA-Z0-9\@\.\:]+');
$section->addInput(new Form_Input(
'descr',
OpenPOWER on IntegriCloud