summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-11 16:03:28 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-11 16:04:26 -0400
commit784b435bce55034ab407cd51552d57d379300a53 (patch)
treebbec2727553457cba938a54440ee763e04f15b2b /src/usr/local/www/firewall_rules_edit.php
parentc38aad85f745ee20450923c28818642b8d1f7f2d (diff)
downloadpfsense-784b435bce55034ab407cd51552d57d379300a53.zip
pfsense-784b435bce55034ab407cd51552d57d379300a53.tar.gz
Revised all pages with autocomplete to accommodate host names in validation and change port inputs to 'text'
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 306fb36..5263af6 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -1283,7 +1283,7 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
$type,
$name .' Address',
$pconfig[$type]
- ))->addMask($type .'mask', $pconfig[$type.'mask']);
+ ))->addMask($type .'mask', $pconfig[$type.'mask'])->setPattern('[0-9, a-z, A-Z and .');
$section->add($group);
@@ -1313,10 +1313,9 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
$group->add(new Form_Input(
$type .'beginport_cust',
null,//$name .' port begin custom',
- 'number',
- (isset($portValues[ $pconfig[$type .'beginport'] ]) ? null : $pconfig[$type .'beginport']),
- ['min' => 1, 'max' => 65535]
- ))->setHelp('Custom');;
+ 'text',
+ (isset($portValues[ $pconfig[$type .'beginport'] ]) ? null : $pconfig[$type .'beginport'])
+ ))->setHelp('Custom');
$group->add(new Form_Select(
$type .'endport',
@@ -1328,9 +1327,8 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
$group->add(new Form_Input(
$type .'endport_cust',
null,//$name .' port end custom',
- 'number',
- (isset($portValues[ $pconfig[$type .'endport'] ]) ? null : $pconfig[$type .'endport']),
- ['min' => 1, 'max' => 65535]
+ 'text',
+ (isset($portValues[ $pconfig[$type .'endport'] ]) ? null : $pconfig[$type .'endport'])
))->setHelp('Custom');
OpenPOWER on IntegriCloud