From d051bdd1283d8fbd600deb12e1f741e68052d306 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Tue, 26 Apr 2016 00:45:09 -0500 Subject: Allow port specification for Unbound domain overrides. Also fix display of input errors. Ticket #6091 --- src/usr/local/www/services_unbound_domainoverride_edit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' . '
' . - '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', -- cgit v1.1