summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorPierre POMES <pierre.pomes@gmail.com>2012-02-25 11:12:56 -0500
committerPierre POMES <pierre.pomes@gmail.com>2012-02-25 11:12:56 -0500
commita3de8b9eef237294bc67b7139e507ff32fa15766 (patch)
tree4a04f9fb2e804a1b43af58c655d4bc46d19d5065 /usr/local/www/services_dhcpv6.php
parentf55b6cbbb1e50430e9eff0f0772c7721aaafcaa0 (diff)
downloadpfsense-a3de8b9eef237294bc67b7139e507ff32fa15766.zip
pfsense-a3de8b9eef237294bc67b7139e507ff32fa15766.tar.gz
Ticket #1917: fix typos, fix domain-search for dhcpv6
Diffstat (limited to 'usr/local/www/services_dhcpv6.php')
-rw-r--r--usr/local/www/services_dhcpv6.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php
index d18e15e..33ad647 100644
--- a/usr/local/www/services_dhcpv6.php
+++ b/usr/local/www/services_dhcpv6.php
@@ -197,6 +197,16 @@ if ($_POST) {
$input_errors[] = gettext("The maximum lease time must be at least 60 seconds and higher than the default lease time.");
if (($_POST['ddnsdomain'] && !is_domain($_POST['ddnsdomain'])))
$input_errors[] = gettext("A valid domain name must be specified for the dynamic DNS registration.");
+ if ($_POST['domainsearchlist']) {
+ $domain_array=preg_split("/[ ;]+/",$_POST['domainsearchlist']);
+ foreach ($domain_array as $curdomain) {
+ if (!is_domain($curdomain)) {
+ $input_errors[] = gettext("A valid domain search list must be specified.");
+ break;
+ }
+ }
+ }
+
if (($_POST['ntp1'] && !is_ipaddrv6($_POST['ntp1'])) || ($_POST['ntp2'] && !is_ipaddrv6($_POST['ntp2'])))
$input_errors[] = gettext("A valid IPv6 address must be specified for the primary/secondary NTP servers.");
if (($_POST['domain'] && !is_domain($_POST['domain'])))
@@ -618,7 +628,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Domain search list");?></td>
<td width="78%" class="vtable">
<input name="domainsearchlist" type="text" class="formfld unknown" id="domainsearchlist" size="28" value="<?=htmlspecialchars($pconfig['domainsearchlist']);?>"><br>
- <?=gettext("The DHCP server can optionally provide a domain search list.");?>
+ <?=gettext("The DHCP server can optionally provide a domain search list. Use the semicolon character as seperator");?>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud