summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-01-03 00:06:16 -0800
committerNOYB <Al_Stu@Frontier.com>2016-01-03 00:06:16 -0800
commit1f0092d6539923f63310397b6e976b6245f58d95 (patch)
treeda6406a48ac0ad9f092dffc5c154bb8909ea15d0
parent8224a71ed8eb6b98eb790673b95703311f4586c8 (diff)
downloadpfsense-1f0092d6539923f63310397b6e976b6245f58d95.zip
pfsense-1f0092d6539923f63310397b6e976b6245f58d95.tar.gz
HTML Compliance - Firewall / NAT / Port Forward / Edit
Attribute min/max not allowed on element input at this point. <input class="form-control" name="srcbeginport_cust" id="srcbeginport_cust" type="text" value="any" min="1" max="65536"> <input class="form-control" name="srcendport_cust" id="srcendport_cust" type="text" value="any" min="1" max="65536"> Attribute min/max not allowed on element input at this point. <input class="form-control" name="dstbeginport_cust" id="dstbeginport_cust" type="text" value="any" min="1" max="65536"> <input class="form-control" name="dstendport_cust" id="dstendport_cust" type="text" value="any" min="1" max="65536"> Attribute min/max not allowed on element input at this point. <input class="form-control" name="localbeginport_cust" id="localbeginport_cust" type="text" min="1" max="65536">
-rw-r--r--src/usr/local/www/firewall_nat_edit.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index 13172a1..2018ac8 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -771,8 +771,8 @@ $group->add(new Form_Select(
$group->add(new Form_Input(
'srcbeginport_cust',
null,
- 'text',
- $pconfig['srcbeginport'],
+ 'number',
+ is_numeric($pconfig['srcbeginport']) ? $pconfig['srcbeginport'] : null,
['min' => '1', 'max' => '65536']
))->setHelp('Custom');
@@ -786,8 +786,8 @@ $group->add(new Form_Select(
$group->add(new Form_Input(
'srcendport_cust',
null,
- 'text',
- $pconfig['srcendport'],
+ 'number',
+ is_numeric($pconfig['srcendport']) ? $pconfig['srcendport'] : null,
['min' => '1', 'max' => '65536']
))->setHelp('Custom');
@@ -834,8 +834,8 @@ $group->add(new Form_Select(
$group->add(new Form_Input(
'dstbeginport_cust',
null,
- 'text',
- $pconfig['dstbeginport'],
+ 'number',
+ is_numeric($pconfig['dstbeginport']) ? $pconfig['dstbeginport'] : null,
['min' => '1', 'max' => '65536']
))->setHelp('Custom');
@@ -849,8 +849,8 @@ $group->add(new Form_Select(
$group->add(new Form_Input(
'dstendport_cust',
null,
- 'text',
- $pconfig['dstendport'],
+ 'number',
+ is_numeric($pconfig['dstendport']) ? $pconfig['dstendport'] : null,
['min' => '1', 'max' => '65536']
))->setHelp('Custom');
@@ -883,8 +883,8 @@ $group->setHelp('Specify the port on the machine with the IP address entered abo
$group->add(new Form_Input(
'localbeginport_cust',
null,
- 'text',
- $pconfig['localbeginport'],
+ 'number',
+ is_numeric($pconfig['localbeginport']) ? $pconfig['localbeginport'] : null,
['min' => '1', 'max' => '65536']
))->setHelp('Custom');
OpenPOWER on IntegriCloud