summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-03 19:21:07 +0545
committerPhil Davis <phil.davis@inf.org>2016-12-03 19:21:07 +0545
commit45541aae63596ea28aa18c84b65946bce6adbffd (patch)
treeb6ef5a1bb4a717ef363716ce01887a44ea27d6a2 /src/usr/local/www/firewall_aliases_edit.php
parent7d4d9ec5866ad034e5432af6decd7e442cfd2bd1 (diff)
downloadpfsense-45541aae63596ea28aa18c84b65946bce6adbffd.zip
pfsense-45541aae63596ea28aa18c84b65946bce6adbffd.tar.gz
Form_IpAddress add types remove patterns
1) Add alias and host types to Form_IpAddress with the appropriate hover text. 2) Remove the patterns - the UI of those is not so effective anyway, so leave the validation of input to the back end. 3) Update uses of Form_IpAddress to use the appropriate Alias or Host type as needed. 4) Remove explicit setPattern() from those uses of Form_IpAddress.
Diffstat (limited to 'src/usr/local/www/firewall_aliases_edit.php')
-rw-r--r--src/usr/local/www/firewall_aliases_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php
index ad34a39..bea0b45 100644
--- a/src/usr/local/www/firewall_aliases_edit.php
+++ b/src/usr/local/www/firewall_aliases_edit.php
@@ -697,7 +697,8 @@ while ($counter < count($addresses)) {
$group->add(new Form_IpAddress(
'address' . $counter,
$tab == 'port' ? 'Port':'Address',
- $address
+ $address,
+ 'ALIASV4V6'
))->addMask('address_subnet' . $counter, $address_subnet)->setWidth(4)->setPattern($pattern_str[$tab]);
$group->add(new Form_Input(
OpenPOWER on IntegriCloud